Home
Sandor Dargo's Blog
Cancel

5 sources of success: how not to lose confidence after a promotion?

When you’re promoted you feel you’re the king of the world. You worked your ass off. You deserved it, you deserved your new title, your hopefully hefty raise. Of course, you’d have deserved just an...

Functions to be called only once in C++

In this article, we are going to discuss how we can make sure member functions are called no more than once while their enclosing object is alive. There can be different motivations for having su...

The Ape That Understood The Universe by Steve Stewart-Williams

I read on Twitter recently that not understanding the masculine-feminine dynamic explains why society is so confused. I’d push this more forward by saying that we don’t really understand any dynami...

The big STL Algorithms tutorial: reduce operations

In this next part of the big STL algorithm tutorial, it’s time to move forward and start discussing the <numeric> header. We discussed all the non-range functions of the <algorithm> hea...

C++ Concepts and the Core Guidelines

Let’s get back to C++ concepts and have a look at the rules and best practices that the Core Guidelines propose. Having read them through, I found that they are incomplete (no surprise, concepts ...

Science, Strategy and War: The Strategic Theory of John Boyd by Frans Osinga

If you are a regular reader of my blog, you probably remember that I started to study Boyd’s thoughts a couple of months ago. It all started with a book recommendation from Ryan Holiday about Boyd:...

Bring some fresh AIR and write effective code review comments

A few years ago, I shared some guidelines about how not to ruin the team mojo with code reviews, what practices should the different involved people follow to avoid feeling bad about each other, ye...

Replace std::find_if in 80% of the cases

If you’ve been following the posts on this blog, you know that I’m a big fan of using standard algorithms in any programming language, in particular in C++. They contain fewer bugs, in general, t...

The Beginning of Infinity by David Deutsch

This is not going to be like my regular book reviews. It cannot be. It was so long… It took me so much time. I’m reading almost every day after I wake up and before I go to bed. Okay, I was on va...

The big STL Algorithms tutorial: comparison operations

In this next part of the big STL algorithm tutorial, we are going to talk about three comparison operations: equal lexicographical_compare lexicographical_compare_three_way equal std::e...