// categories

Architecture

architecture 03 Jun 2024 6 min read

Factory and builder patterns

Centralising object creation in C++. Factory method vs abstract factory, fluent builders, and how these patterns interact with dependency injection and testing.

#gof#creation#patterns#oop#di
architecture 20 May 2024 6 min read

CRTP — static polymorphism and mixins

How the Curiously Recurring Template Pattern enables zero-cost abstraction, compile-time interfaces, and mixin composition without virtual dispatch.

#templates#crtp#patterns#performance#c++
architecture 19 Feb 2024 6 min read

Interface-based design in C++

Pure virtual classes, designing contracts that hold under substitution, and how interface-based thinking changes the way you write testable C++.

#oop#testability#interfaces#architecture
architecture 29 Jan 2024 5 min read

Layered project structure with CMake

A practical src/include/lib/test layout with clean CMakeLists files. How to avoid the monolith, enforce layer boundaries, and keep build times sane.

#cmake#layout#build