Jump to content

You aren't gonna need it

From Wikipedia, the free encyclopedia
(Redirected from YAGNI)

Template:Short description "You aren't gonna need it"[1][2] (YAGNI)[3] is a principle which arose from extreme programming (XP) that states a programmer should not add functionality until deemed necessary.[4] Other forms of the phrase include "You aren't going to need it" [5][6] and "You ain't gonna need it".[7]

Ron Jeffries, a co-founder of XP, explained the philosophy: "Always implement things when you actually need them, never when you just foresee that you [will] need them."[8]

Context

YAGNI is a principle behind the XP practice of "do the simplest thing that could possibly work" (DTSTTCPW).[2][3] It is meant to be used in combination with several other practices, such as continuous refactoring, continuous automated unit testing, and continuous integration. Used without continuous refactoring, it could lead to disorganized code and massive rework, known as technical debt.Template:Citation needed YAGNI's dependency on supporting practices is part of the original definition of XP.

See also

{{#invoke:Portal|portal}} Template:Div col

Template:Div col end

References

Template:Reflist

  1. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named XPi
  2. ↑ 2.0 2.1 Cite error: Invalid <ref> tag; no text was provided for refs named XPe
  3. ↑ 3.0 3.1 Cite error: Invalid <ref> tag; no text was provided for refs named OOC
  4. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named XPA
  5. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named Ref
  6. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named LSD
  7. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named DPiR
  8. ↑ Cite error: Invalid <ref> tag; no text was provided for refs named RJef