Software Engineering Architecture Lab

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

All lessons in Foundations

  1. Meet ShopFlow: The System You Will Architect
  2. DRY Is About Knowledge, Not Code
  3. Orthogonality: Change One Thing, Break One Thing
  4. Contracts, Assertions & Crashing Early
  5. Tracer Bullets & Prototypes
  6. Reversibility: Don’t Bet the Company on One Decision
  7. Debugging Like an Engineer
  8. Automate Everything: Version Control, Builds & Pipelines