Fail fast

Invalid state should be detected and surfaced immediately at the point of origin, not propagated silently:

  • Use assertions and preconditions in debug builds
  • Validate inputs at system boundaries
  • Return typed errors rather than swallowing exceptions
  • Never use empty catch blocks
  • In production, fail gracefully with clear messages; in debug, fail loudly
version
1.0.0
tags
fail-fast
author
Mike Fullerton
modified
2026-03-27

Change History

Version Date Author Summary
1.0.0 2026-03-27 Mike Fullerton Initial creation