Design patterns and SOLID principles, in modern C++.
The Gang of Four patterns and the SOLID principles, taught as decisions under forces rather than recipes to apply by reflex, with new, real-domain C++20 and C++23 code behind every chapter and a GoogleTest suite proving each example actually does what the chapter claims. Read it straight through, or jump to the part that answers the question you have right now.
The parts
Twelve parts, read in order the first time. Each part page lists its chapters; each chapter stands on its own for a reader jumping in to solve one problem. The orientation part is the map; start there if you only have time for one page.
Orientation
The toolchain (clang, CMake, Conan, GoogleTest), how to read the book, and the codetabs convention that carries C++20 and C++23 side by side through every chapter.
Recognizing Design
Patterns as decisions under forces, not recipes to apply by reflex, and the shared vocabulary a team (and an AI pairing partner) needs to name what it sees.
Principles (SOLID, Martin)
The five SOLID principles in modern C++ terms: SRP/OCP/LSP first, then ISP/DIP and dependency injection without a framework.
The C++ Substrate
RAII and deterministic lifetimes, value semantics and smart-pointer ownership, and proving a design works with GoogleTest before the patterns chapters begin.
Selecting and Varying Behavior
Strategy, Template Method with non-virtual interface, State and finite-state machines (including probabilistic ones), and Command with undo and command queues.
Creating Objects Under Control
Factory Method and Abstract Factory, Builder and Prototype (with serialization), and Singleton alongside the dependency-injection alternative.
Composing and Adapting Structure
Adapter, Facade, and Bridge (with PImpl), Decorator and Proxy, and Composite and Flyweight alongside the Null Object idiom.
Coordinating and Traversing
Observer and Mediator, Chain of Responsibility and Iterator with ranges, and Visitor, Memento, and Interpreter.
Idiomatic C++ Expressions
CRTP and policy-based design, type erasure alongside PImpl, and expression templates, serialization, and prototype registries.
Patterns in the Wild
Resource pools (connection, thread, object, monitor, and active object), shortcut patterns such as function-pointer tables and dispatch maps, and anti-patterns to recognize and avoid.
Changing Inherited Code (Modernized Feathers)
Seams and the test safety net, the 24 dependency-breaking techniques updated for C++20/23, Fowler contrasted and combined with Feathers, and when to refactor versus rewrite.
Putting It Together
A final project that composes several patterns from the book, and a look at working with AI and LLM tools as a pattern-literate collaborator rather than a code vending machine.
Appendices
A build and toolchain reference, a GoogleTest reference, a gMock mocking reference, an xUnit test-patterns guide, a pattern-to-force quick reference that maps every pattern, principle, and idiom in the book to the forces it answers, a code-first review of the wider programming-principle vocabulary beyond SOLID, and a C++-specific review of large-scale physical design: components, levelization, and insulation.
Everything else on the site
The chapters are the core; these round it out as the book fills in: runnable proof for every pattern, the diagrams that explain the forces behind each one, and the books behind the opinions.