Fail Fast
PronunciationFAYL FAST
Definition
Fail fast means detecting a problem as early as possible and stopping with a clear error, instead of carrying bad data deeper where it causes confusing failures later.
Where you hear it
In design principles, startup checks for missing settings, input validation, and code reviews of silent except: pass blocks.
Examples
The app refuses to start if the database URL is missing.
Validate the input at the top and raise a clear error.
The script stops at the first missing environment variable instead of failing later.
Common mistake
Catching errors and carrying on with a default. The real problem then shows up far away from its cause.
Don't confuse with
Fail open or closed, which is about what a system allows when something breaks. Fail fast is about noticing and reporting early.
Say it at work
- In a meeting or chat
Let's fail fast on bad config.
- In an email or ticket
A clear early error beats a mystery crash later.
Keep exploring
More in Architecture & Design