中国开发网: 论坛: 我爱学英语: 贴子 628570
sealw: 每日一句
In a sense, this is what some premises of Test-Driven Development encourage, especially aggravated by the mantra “Do the simplest thing that could possibly work,” which we often hear from Extreme Programming proponents. It’s a nice thought but one that tends to lead to very myopic designs and, worst of all, to a lot of churn as you constantly revisit and refactor
the choices you made initially so they can encompass the next milestone that you purposefully ignored because you were too busy applying another widespread principle known as “You aren’t going to need it” (YAGNI).

在某种程度上,这就是测试驱动开发所鼓励的承诺,“最简单的能工作的东西”这句咒语特别强调了这一点,这句话常常在极限编程的支持者那里听到。这是个不错的想法,但是这会导致短视的设计,而且更糟糕的是,当您不断重构最初的选择,以便能够赶上下一个里程碑时,这会导致许多反复。您以前有意忽略了下一个里程碑,因为您正忙于应用另一项广为流转的原则:“您将来不会需要它”(YAGNI)。

相关信息:


欢迎光临本社区,您还没有登录,不能发贴子。请在 这里登录