๐Ÿงฉ Design Patterns with C++
Home Chapters Examples Diagrams Bibliography GitHub โ†—
  1. Home
  2. Putting It Together
Part 11 2 chapters

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.

Chapter 31

Final project: composing patterns into a system

A shipment dispatch console that composes Strategy, Factory, State, Command and Observer into one system, taught at the seams where the patterns meet rather than re-teaching any one of them.

35 minRead โ†’
Chapter 32

Working with AI and LLM tools

Using an LLM as a pattern-literate collaborator: name the forces and the candidate pattern, recognize over-patterning, hallucinated APIs and outdated C++, and gate every draft on behavior tests plus an idiomatic review. A usage-tier Strategy pairs a correct classifier with a plausible one carrying a single off-by-one at a billing boundary, caught by the same table run against both.

35 minRead โ†’
โ† Previous part Changing Inherited Code (Modernized Feathers) Next part โ†’ Appendices
Design Patterns with C++
Tutorial content: CC BY 4.0. Sample code: Apache 2.0.
Source on GitHub โ†—  ยท  File an issue โ†—