Contracts, Assertions & Crashing Early
Defensive programming done right: fail loudly at the boundary instead of corrupting data quietly. Lesson 4 of Level 1: Engineering Foundations.
Level 1 · Engineering Foundations · Lesson 4 of 8
Defensive programming done right: fail loudly at the boundary instead of corrupting data quietly.
Continue learning
- Orthogonality: Change One Thing, Break One Thing — Previous lesson
- Tracer Bullets & Prototypes — Next lesson
- Level 1: Engineering Foundations — Back to the level
All lessons in Foundations
- Meet ShopFlow: The System You Will Architect
- DRY Is About Knowledge, Not Code
- Orthogonality: Change One Thing, Break One Thing
- Contracts, Assertions & Crashing Early
- Tracer Bullets & Prototypes
- Reversibility: Don’t Bet the Company on One Decision
- Debugging Like an Engineer
- Automate Everything: Version Control, Builds & Pipelines