Home
Sandor Dargo's Blog
Cancel

Class templates versus constructor templates

I realized that this simple but important difference should be covered twice during the last year. Once when I wrote about how shared and unique pointers take their deleters, and once when I read T...

C++ Software Design by Klaus Iglberger

The first time I - virtually - met Klaus was at C++ On Sea, I think in 2020. He held a workshop about modern software design which I managed to partially attend. He spoke in a slow and friendly man...

C++23: attributes

C++11 introduced attributes. Even though the language itself only came with two ([[noreturn]] and [[carries_dependency]]), it also provided the unified standard syntax for *implementation-defined l...

C++23: std::out_ptr and std::inout_ptr

This week, let’s continue exploring the new world of C++23. We are going to discuss two new standard library functions and their outputs (std::out_ptr, std::inout_ptr), two new standard library typ...

Influence: The Psychology of Persuasion by Robert B. Caldini

An easy-to-read book for those who want to learn about how influencing others works. It’s not only useful to learn how to influence other people but also to understand how others try to manipulate ...

C++23: auto(x) and decay copy

When I first saw auto I thought that woah, not so fast, how am I going to know the type of my variables? Then I started to understand that auto helps in so many different ways. It helps remove the ...

C++23: How lambdas are going to change?

C++23 is coming soon and it will change how lambdas work in 3 different ways. They will not only become simpler in certain circumstances but they will be also aligned more with other features of th...

Non-coding roles or something you like?

This is an excerpt from by book called The Seniority Trap. I’m sharing some parts from each chapter. Check out the #thesenioritytrap for more parts. — Have you ever heard about the Peter Principl...

C++23: The <expected> header; expect the unexpected

What do you do when you have to return multiple values from a function? Do you return an instance of some data structure? Do you use output variables? Maybe you throw an exception to get rid of the...

Why to use C++ in 2022

C++ is a programming language that is roughly 40 years old and it’s still unavoidable. In this article, we are going to see where and why it’s used and whether it has a future or not. Let’s get in...