Part 2
2 chapters
Principles (SOLID, Martin)
The five SOLID principles in modern C++ terms: SRP/OCP/LSP first, then ISP/DIP and dependency injection without a framework.
Chapter 3
SOLID I: single responsibility, open/closed, Liskov substitution
Splitting a billing engine along the lines of what changes: one responsibility per type under the Single Responsibility Principle, a rule abstraction that is open to new tax and discount behavior without edits under the Open/Closed Principle, and a refined discount rule that honors its parent's contract under Liskov Substitution.
Chapter 4
SOLID II: interface segregation, dependency inversion, and DI without a framework
Segregating a fat interface into focused role interfaces, inverting the dependency between a high-level policy and a low-level implementation, and composing the resulting object graph by hand, in idiomatic C++ with no DI container.