🧩You Aren't Gonna Need It (YAGNI)
Also known as YAGNI, You Ain't Gonna Need It, You Aren't Going to Need It
Do not build a feature until you really need it.
Think of it like
Think of it like not buying a pram before you have a baby. Wait until you need it.
Example
Jack wants to make his app support ten languages, though all users speak English. He skips it. A year later still nobody has asked.
Why it matters
Code for needs you only imagine costs time now. It also needs care forever, often for nothing.
Definition
Common mistake
Key takeaways
- 1Build what is asked. Not what might be.
- 2Unused code costs. Tests and upkeep.
- 3Add it later. When the need is real.