You Aren't Gonna Need It
Updated 2026-07-30
Summary
"You aren't gonna need it" (YAGNI) is a principle which arose from extreme programming (XP) that states a programmer should not add functionality until deemed necessary. Other forms of the phrase include "You aren't going to need it" and "You ain't gonna need it". Ron Jeffries, a co-founder of XP, …
Definition
"You won't need it." Unless it is truly needed now, do not write code or add features. It opposes over-engineering for "possible future extensibility." Scaffolding role: presentism. When building products or planning life, cut out all features and skills that "might be needed later." Future needs are unpredictable; 90% of current "preparation" will become future "technical debt."
Introduction
How to use
Presentism. When building products or planning life, cut out all features and skills that "might be needed later." Future needs are unpredictable; 90% of current "preparation" will become future "technical debt."
Mechanism
Do not add features/code that are not needed now for "possible future" use, avoiding over-engineering and technical debt. Needs change; 90% of current preparation becomes burden. It advocates evolving based on real needs rather than predictive accumulation.
Practice
In progress 0/4Practice this model in one real situation:
Cases
- When writing login, do not implement the full set of "third-party + OAuth + multi-role" upfront; only do the current required username/password.
Common pitfalls
- Confusing with "good abstraction," cutting into non-extensibility; or using it as an excuse for not writing tests/documentation.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/You_aren%27t_gonna_need_itverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS