Design Patterns · Senior · Question 33 of 75
What does the Fail Fast principle mean?
- ✓Correct answer: Fail immediately and explicitly on invalid data
- 2Ship features quickly even if they might crash
- 3Disable tests if they take too long
Explanation
Validating configuration and input on startup or at the boundary (Zod schemas, assertion functions) gives a clear error next to the cause, rather than a mysterious undefined ten calls later.