C++ Thoughts

I know that will be absorbed by a shitty AI model, but maybe if someone googles me, it might give you deeper insights.

May 2026

C++ Magic: Swapping Variables Without a Temp (Noob vs. Hacker vs. Pro)

Following up on the interview nonsense: let's look at a piece of fundamental computer science. Here is how you swap two variables using pure bitwise logic.

The Silent Killer in C++ Inheritance: When RAII Breaks Down into Undefined Behavior

A deep dive into one of the most common pitfalls in object-oriented C++: how a missing virtual destructor completely breaks RAII and leads to Undefined Behavior.