Logo

Blog


C++

Singleton done right in C++

In today's post, I like to touch on a controversial topic: singletons. While I think it is best to have a codebase without singletons, the real-world shows me that singletons are [...]
C++ Insights

C++ Insights Episode 69: = default and uniform initialization - Best Practice Explained

I published a new C++ insights episode: = default and uniform initialization - Best Practice Explained. [...]
C++

C++20s std::source_location in action

In today's post, I want to address a question I'm getting occasionally when teaching a C++20 class. From the plenty of new features that we got with C++20, one sticks out as [...]
C++ Insights

C++ Insights Episode 68: C++20: Making constructors smarter with conditional explicit

I published a new C++ insights episode: C++20: Making constructors smarter with conditional explicit. [...]
C++

C++20s concepts with a forward declared type

In today's post, I would like to continue talking about forward declared or better incomplete types in C++. [...]
training

Second Edition: Master Modern C++ - With Me as Your Personal Guide

The first edition sold out fast — and after all the great feedback and success stories, I’m thrilled to open Edition 2 of my special bundle: Programming with C++17 and C++20 [...]
C++ Insights

C++ Insights Episode 67: C++23: Why if consteval can make your code better

I published a new C++ insights episode: C++23: Why if consteval can make your code better. [...]
C++

Forward declaring a type in C++: The good, and the bad

In today's post, I would like to shed some light on the implications of forward declaring a type in C++. [...]
C++ Insights

C++ Insights Episode 66: How C++23 handles temporary objects in range-based for-loops

I published a new C++ insights episode: How C++23 handles temporary objects in range-based for-loops. [...]
C++

Efficient C++: The hidden compile-time cost of auto return types

In today's post, I would like to dive into writing efficient C++ code. As you probably know, one post will not cover this entire topic. For today's post, I like to focus on [...]