© Stephan Roth 2021
S. RothClean C++20https://doi.org/10.1007/978-1-4842-5949-8_9

9. Design Patterns and Idioms

Stephan Roth1  
(1)
Bad Schwartau, Schleswig-Holstein, Germany
 

Good craftspeople can draw on a wealth of experience and knowledge. Once they’ve found a good solution for a certain problem, they take this solution into their repertoire to apply it in the future to a similar problem. Ideally, they transform their solution into something that is known as a canonical form and document it, both for themselves and for others.

Canonical Form

The term canonical form in this context describes a representation of something that is reduced to its simplest and most significant form without losing generality. Related to design patterns, the canonical ...

Get Clean C++20: Sustainable Software Development Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.