Home
Sandor Dargo's Blog
Cancel

10x is easier than 2x by Dr. Benjamin Hardy

If you’ve been following my blog, you probably know that I’m a fan of Benjamin Hardy’s books. I already read and praised quite a few of them. 10x is easier than 2x is part of a series that he coaut...

Extern templates to reduce binary size

In my quest towards a smaller binary size, someone asked me if I considered extern templates. I did not. I didn’t even know about them. But I was more than happy for the suggestion and now here I a...

C++23: Removing garbage collection support

If we go through the list of C++23 features, we can stumble upon the notion of garbage collection twice. Once among the language and once among the library features. Both entries refer to the same ...

My battle against signed/unsigned comparison: the worst violations

We spent the last two weeks discussing the dangers of signed/unsigned comparisons. First, we discussed why it’s a problem in the first place, and how we can safely compare signed and unsigned types...

My battle against signed/unsigned comparison: the most usual violations

As we discussed last week, comparing numbers with different signs can be dangerous in C++. If you try to compare a signed with an unsigned integer, you might get a result that makes no sense if you...

How to compare signed and unsigned integers in C++20?

Comparing two numbers should be easy right? Maybe it should, yet it’s not the case in C++ even if we constrain the comparison to the domain of integral numbers. If you try to compare a signed with...

Trip report: Dev Talks Cluj 2023

The last week of September I had the honour to share my thoughts in the heart of Transylvania about clean code and software quality at DevTalks Cluj. Over the last few years, DevTalks became a succ...

Be a good gardener of your scripts

I wanted to share a few words on why you should care about your scripts. Programming is a science. Programming is art. Programming is a craft. Programming is… Programming is like gardening Diffe...

Once more about clean code

This summer, I gave a talk at C++ On Sea about Why Clean Code is not the norm where at the end, Conor Hoekstra - who you might know from code_report or from other podcasts - asked me a question abo...

Constexpr functions for smaller binary size?

I read recently “constexpr functions: optimization vs guarantee” by Andreas Fertig. I was a bit surprised by some of his claims about constexpr functions regarding binary size so I decided to go af...