Home
Sandor Dargo's Blog
Cancel

We are always late

I recently read a post on social media about modern people who are always chasing themselves as they are always late. It also reminded me of what one of my first bosses told me. According to the me...

Vectors and unique pointers

In this post, I want to share some struggles I had twice during the last few months. For one of my examples, I wanted to initialize a std::vector with std::unique_ptr. It didn’t compile and I had l...

Binary sizes and passing functions to functions

So why templates are interesting for our series on binary sizes? It’s because as mentioned, they do not represent callable code. They represent templates to generate callable code. The more you gen...

Binary size and exceptions

In this series of articles about binary sizes, we already talked about the default keyword and said that the default keyword will make a special function noexcept, whenever it can. What is noexcep...

Can we find a compromise?

Many say that life is about compromises. They are right. But when can we find a compromise? What are the driving forces when two people don’t want the same thing and a decision is to be made? Wha...

The observer pattern and binary sizes

In the previous article on binary sizes, we discussed how the decorator pattern’s classic and modern implementation fares in terms of binary size. We saw that the modern implementation had a smalle...

Ordinary Men: Reserve Police Battalion 101 and the Final Solution by Christopher Browning

A few months ago I finished reading Ordinary Men by Christopher Browning. After having read books both about the nazi and the communist destruction in the 20th century, this was yet another depress...

The decorator pattern and binary sizes

In one of the previous articles on binary sizes, we discussed how making a class polymorphic by using the virtual keyword affects the binary size. Turning a function into virtual has a substantial ...

Binary sizes and RTTI

What is RTTI? What does it have to do with the size of your executables? Let’s start with answering the first one. RTTI stands for run-time type information. It’s available for every class that h...

What's the easiest way to add custom code to your WordPress site without breaking it?

C++ is one of the most popular programming languages out there. The latest stats show that it’s now the third-most popular language, surpassing Java for the first time since 2001. Despite it being...