Blog
Posts on C++, software design and how computers work underneath. From January 2027, every build video gets a written version here too, with the code.
From Brain to Equifax: 4 cyberattacks that changed computing
How the Brain virus, the Morris worm, ILOVEYOU and the Equifax breach worked, why each one spread, and what it changed for the people who build software.
27 projects every senior engineer should build once
Twenty-seven hard projects, from an OS kernel and a compiler to a TCP/IP stack and a ray tracer, with what each one teaches you and where to start.
The Decorator pattern in modern C++
How the Decorator pattern adds behaviour to one object by wrapping it, shown with a C++20 coffee shop that uses unique_ptr, prices in pence and no duplicated members.
The Observer pattern in C++, without the lifetime bugs
How the Observer pattern lets one object notify many others, built as a C++20 weather station that uses weak_ptr so the subject never keeps dead observers alive.
The Strategy pattern in modern C++
How the Strategy pattern lets an object swap behaviour at runtime, shown with a C++20 example using std::unique_ptr, plus the lighter std::function version.
Object-oriented modelling, part 2: decomposition and generalization
How to split a system into parts with association, aggregation and composition, how inheritance generalizes shared behaviour, and how each one maps to C++ ownership.
Object-oriented modelling, part 1: abstraction and encapsulation
What abstraction and encapsulation mean in practice, how programming languages arrived at them, and how to show them in C++ code and UML class diagrams.