
Using macros to simplify type visitors and enums
I like using enums and type hierarchies. What I don’t like is writing verbose switch statements to use them. In C++ I use macros to
I like using enums and type hierarchies. What I don’t like is writing verbose switch statements to use them. In C++ I use macros to
Iterating over the elements of a recursive data structure can be difficult. Given a set of objects, where each object could potentially link to any
I spent several hours trying to fix a defect that didn’t exist. I’m working on template methods in Leaf and one of my overloads wasn’t
It seems like WordPress may have lost the war on comment spam. Up until early this year the spam was quite well filtered, Akismet was
I needed an endpoint that streamed the output of an external program to the remote client. In this article I describe how I did it
Variadic templates are a great new feature of C++, yet they can be a bit confusing. __VA_ARGS__ are also a nice feature of the preprocessor,
Building native libraries for Android can be a bit confusing. My goal, which is likely shared by many, was to get libpng and freetyp2 working
Dispatching is one of those areas where I almost always rely on the preprocessor. I have done this in a variety of languages using a
Double-checked locking is notoriously evil. While it can be a boon to efficiency, it’s tricky to do correctly. Lurking at its core are two issues
Storing user credentials is one of the key roadblocks in creating a sessionless web application. Somehow you need to safely identify the user without storing
Signup to my mailing list to get notified of each article I publish.
Made with Elementor. Hosted with SiteGround. Domain from Netim.