Install everything we need to develop C++ applications in a matter of minutes. Docker4c is a starter for Docker-based build environments. | Continue reading
Compile time calculations are a useful tool to improve run-time performance. In this post, I show how to convert a run-time algorithm to compile time. | Continue reading
Today, Matt Bentley writes for us about terse names in our Code. Matt was born in 1978 and never recovered from the ordeal. He has lived a long and interesting … | Continue reading
A guest post by Andrey Karpov about the evil of macros. C++ opens opportunities to go without macros. Let's try to use them as seldom as possible! | Continue reading
The pImpl idiom is a useful idiom in C++ to reduce compile-time dependencies. Here is a quick overview of what to keep in mind when we implement and use it. | Continue reading
Contents1 Free access to everything1.1 What if the logic is elsewhere?2 Constructors3 What if there is logic for one of the members?4 What if some of the data belongs together?`5 … | Continue reading
On social media, you will now and then encounter C++ quizzes and trick questions. Do we need to know the answers to be good C++ programmers? | Continue reading
When the building blocks outnumber the number of possible permutations a programmer can reasonably expect to fit in their head, who really wins? | Continue reading
Today I'll continue the little CMake tutorial series. We'll add a few options and a bit of fine-tuning to the compilation of our example project. | Continue reading
Sometimes we want to express the state of "nothing meaningful" instead of a value. This is the use case for C++17's `std::optional`. | Continue reading
One of the more recent posts in my employer's company blog is titled 'What’s wrong with: “I don’t write any tests since I am not a tester”?' - which made me think about the relation of developers to testing, and about the self-image of any developer who would say that sentence in … | Continue reading
CMake is one of the most popular build systems for C++ out there. One of the main reasons probably is that it is cross-platform: It does not build the project itself but operates a platform-specific system. In this post, I'll lay out the very first step to approach a CMake-based … | Continue reading
`std::variant` is a library addition in C++17 for sum types, and `std::visit` is one of the ways to process the values in a `std::variant`. | Continue reading