YAGNI

noun

say it: “YAG-nee” /ˈjæɡni/

Short for "you aren't going to need it": the advice to build only what is needed today.

What does YAGNI stand for, and what does it mean?

YAGNI stands for "you aren't going to need it". It's the advice to build the simplest thing that works for what's asked today, instead of adding code, options or patterns for changes someone guesses might come. When the change does arrive, add what it needs then. It's the cure for over-engineering.

In a sentence

  • “The reviewer wrote YAGNI next to the formatter factory, and the team took it out.”

Level: Apprentice · More Software Development terms at this level

Updated