YAGNI是英文 “You aren't gonna need it” 的缩写,一般认为属于软件工程方法极限编程。YAGNI 原则指出,程序员应该在面临确凿的需求时,才实现相应功能。[1]

在 YAGNI 的实践中,建议配合单元测试持续整合代码重构;以避免产生难以维护的代码(技术负债)。

参考文献

Wikiwand in your browser!

Seamless Wikipedia browsing. On steroids.

Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.

Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.