General Design Philosophy
Guiding mottos for simple and maintainable code.
Table of Contents
- KISS (Keep It Simple, Stupid): Simplicity should be a key goal in design, and unnecessary complexity should be avoided.
- YAGNI (You Aren’t Gonna Need It): Do not add functionality until it is practically necessary.
- DRY (Don’t Repeat Yourself): Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.
- SoC (Separation of Concerns): Distinct sections of the computer program should address distinct issues.
- LoD (Law of Demeter): “Principle of Least Knowledge”. A module should not know about the innards of the objects it manipulates.
- Convention Over Configuration: Decrease the number of decisions that a developer using the framework is required to make.