As programmers, we’re often tempted to leverage design patterns, language idioms, advanced language features, and well-known libraries, which is certainly advisable. However, it’s essential to put on the KISS/YAGNI glasses before diving into these techniques 🙂
Tag: namespaces
7 Common reasons of using the namespaces in a C++ project.
Namespaces were introduced to the C++ Standard in 1995 and usually they are defined like this:
A namespace defines a new scope. They provide a way to avoid name collisions.
Although namespaces are used extensively in recent C++ code, most older code does not use this facility.
After exploring the source code of many C++ projects, here are some common reasons of using the namespaces in these projects. Continue reading “7 Common reasons of using the namespaces in a C++ project.”