Part 1 of 6 · 1 min read
Why this page comes last in Level 2
In this module you will
- Say what DRY, KISS and YAGNI each mean, in one sentence.
- Remove real duplication and leave accidental duplication alone.
- Choose a plain solution before a pattern.
- Decide when building for the future is worth it and when it is waste.
- Use the four rules of simple design to review code.
Modules 1 to 6 added structure: more classes, more interfaces. Structure has a cost, and this page keeps it in check. The sources are "Clean Code" (CC), chapters 12 and 17, "Head First Design Patterns" (HF), chapter 13, and "Clean Architecture" (CA), chapters 15 and 25. Code was compiled and run before it was written here. Numbers marked "made up" only show the idea.