Design Patterns were always different in C++, and a usual use of these patterns in C++ might cause more complications and problems in this language. In this series of articles, I'll show how to correctly implement them in C++. In this article we'll see how to build a factory for a template base class.
Hash your Conditions – C++
Conditions are the most natural way to control your code flow in programming, it's almost the first thing that every programmer learn at the beginning. Sometimes conditions, especially if you are conditioning strings in C++, the code become very complicated to understand and very lazy. Let's break this pattern.
C++ Help your compiler to help you
How can the compiler help our code to run faster, and how can it generate some warnings in a single cross-compilers way?
C++ Compiler Secrets: Pragma
Communicate with GCC compiler using GCC specific compiler pragmas.
C++ Illusions: Random
One of the first mistakes that every developer doe is to believe in the theoretical idea that behind "Random". The absolutely unexpected arbitrary result of some unexpected mysterious function. What random really is, and how do we use it the right way on C++?
Power Range(r)s – C++20
C++20 Ranges library. What are the ranges. how to use them, what mistakes should we avoid and how to apply ranges on custom collections.
Contributing a C++ Compiler – Experience Details
Contributing a C++ compiler personal experience details.
The Number that Broke and Spoke – C++ Investigator
How many times you find yourself writing hard-coded numbers inside your code, while trying to make sure as much as you can to make these numbers' units visible? You probably found yourself mentioning the units as part of the variable name, or at the comment, praying that who ever gets to your code will understand it. After reading this article, you will have the most maintainable way of doing so.
Maintain Your Iterations – Iterators Customization – Part 3
The third part of the iterators series. Maintain your iterations with your own containers collections. How can you create an iterators friendly collection to fit your legacy iterators-friendly code infrastructure? Create new custom iterator types in C++20.
Maintain Your Iterations – Insecure Iterations – Part 2
The second part of the iterators series. Iterators might be a dangerous thing sometimes. What is the risk they bring with them, and how to prepare to / deal with it?
