// TL;DR
Write only the code that solves the problem — not what you imagine could become useful. If you write 200 lines that could be 50, rewrite. The test: "Would a senior engineer call this overcomplicated?" If yes — simplify.
Why the rule exists
AI assistants tend to add. A flag here, an abstraction there, an options parameter on a function called from one place. It feels productive, but it only pays off if the requirement actually shows up. Until then it's maintenance burden and mental noise for the next person reading the code.
Simplicity First isn't an aesthetic choice. It's preparedness: the less there is to maintain, the faster you can change direction when the user changes their mind — and they will.
What it means in practice
Four no's
- No features beyond what was asked. If the user asks to rename a field, don't also move it to a new file "while I'm here."
- No abstractions for single-use code. Three similar lines is better than a premature generic function. Extract only when the pattern hits a third site.
- No "flexibility" that wasn't requested. A config file with empty options is a bill that hasn't been issued yet.
- No error handling for impossible scenarios. Trust internal code boundaries and framework guarantees. Validate only at system boundaries (user input, external APIs).
// What is "a system boundary"?
A place where data crosses the trust boundary: HTTP input, file parsing, third-party API responses, user forms. Inside your own code, a method parameter is not a boundary — you wrote the caller yourself.
The one test
Before you commit, ask yourself:
// The question
"Would a senior engineer call this overcomplicated?"
If the answer is "maybe" or "it depends" — then yes. Rewrite.
Do / Don't
// DO
- Delete code you wrote if it's no longer needed after a refactor.
- Use existing framework patterns rather than rolling your own.
- Prefer explicit code over an extra abstraction layer.
- Trust language/runtime:
Math.max(0, x)over an if-check.
// DON'T
- Don't add
optionsparameters "for the future." - Don't create an interface for a single implementation.
- Don't add try/catch around code that only throws if the runtime itself is corrupt.
- Don't introduce a new design pattern without deleting two that resemble it.
When simplicity doesn't apply
A few places you should not trim:
- Security boundaries. Validating user input and external API responses isn't speculative — it's a boundary. Don't trim there.
- GDPR & audit. When compliance is a requirement,
ConsentServiceand an audit log aren't add-ons — they're standard. That isn't complexity, it's correct scope. - Multi-tenancy. If a product is multi-tenant from day one, tenant isolation has to be in from the first migration. Retrofitting is more expensive than building it in.
Simplicity First is about cutting speculative complexity — not necessary complexity.