Principle of Least Astonishment
← Back to Other Design Principles
Code should do what the reader expects. Components should behave in a way that most users will expect, avoiding surprising side effects or counterintuitive APIs. Predictability reduces bugs and eases onboarding.
Key Properties
Related
- KISS (simplicity aids predictability)
- API Design (apply to API surfaces)