c++ errors... a rant

Today a small rant… with a bit of an unexpected conclusion!

In the beginning someone decided to use std::variant. This has made a lot of people very angry and been widely regarded as a bad move.

So at work this week I had to look at code written with std::variant… a lot can be said about std::variant but this time it is about compile errors!

Someone had decided to use an std::variant<x, y, z>, probably got a really bad error-message when they tried to extract a value out of it with the type w, i.e. a type that is not part of the variant. Something like this, but simplified.

Read More

Link Dump Vol1

During my time of work this christmas I had lots of plans to work on some of my hobby-projects or maybe just check out some new stuff… none of that happened :D But I can at least write something, something low effort that is!

I have had this document (and an ever growing youtube “watch later”-list!) where I have just dumped links to blog-posts, presentations and videos that I have found in one way or another interesting.

Read More

It's Healthy to Look Outside Your Own Tribe!

It’s time for me to interrupt the ordinary programming on this little part of the interwebs that I call my blog and not do the usual schtick with numbers, code and c++-bashing and be a bit more philosophical instead.

One of my favorite philosophers!

I think most of us working in tech, especially if we have been doing it for a while, know quite well what we like, what we think is “good engineering” or dare I say it “clean code”! We have found our bunch of people, our “tribe”, where we tackle similar problems, like the same kind of solutions and feel at home! Unfortunatly we also tend like to fling poop over the fences towards the other “tribes” and not really care where or on who it may land. Im unfortunatly not free of sin here, and you are probably not either!

Read More