Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M4158

You Aren't Gonna Need It

You Aren't Gonna Need It
CreateHigh supportDesign Thinking
Included
account_tree

Updated 2026-07-30

Loading revision record…

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."

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/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/You_aren%27t_gonna_need_itZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS