One of them is composed method.
其中之一就是组合方法。
Here's an example of the benefits of composed method.
下面通过一个示例说明组合方法的好处。
The composed method pattern defines three key statements
组合方法模式有三条关键规则
Rigorous adherence to TDD naturally creates methods that adhere to composed method.
严格遵守TDD会自然地产生符合组合方法模式的方法。
So I'll refactor this method, with composed method in mind, to see if I can isolate the atomic parts.
因此,我将根据组合方法模式重构这个方法,看看是否可以分离出原子性部分。
In that book, Kent defined a pattern called composed method. The composed method pattern defines three key statements.
在该书中,Kent定义了一种名为组合方法(composed method)的模式。
In the next installment, I'll discuss refactoring toward design, building on the concepts of composed method and the SLAP principle.
在下期文章中,我将在组合方法和SLAP原则的基础上讨论重构如何推进设计。
One of the benefits surrounding test-driven-developed code mentioned in Part 1 is composability, based on the composed method pattern by Kent Beck (see Resources).
第 1部分中提到的测试驱动开发的好处之一是可组合性,也就是采用KentBeck 提出的组合方法模式(见参考资料)。
Groovy's advanced language syntax and features (see Resources) make for more readable code, especially when combined with the complementary techniques of composed method and SLAP.
Groovy的高级语言语法和特性(见参考资料)让我们能够编写出可读性更好的代码,在与组合方法和SLAP等补充技术相结合时尤其如此。
Composed method encourages building software with lots of cohesive methods.
组合方法可以用许多内聚的方法构建软件。
Composed method helps design because it generates reusable building blocks.
组合方法生成可重用的构建块,有助于产生更好的设计。
Composed method says that each method should do one and only one thing, and this method violates that rule.
组合方法模式指出,每个方法应该只做一件事,这个方法违反了此规则。
Composed method: methods call out to other methods, each of which are roughly the same level of abstraction.
组合方法(Composed method):方法中调用其他方法,而且这些被调用的方法基本上处于同样的抽象层次。
Composed method encapsulates the idea that all your methods should do one and only one thing, making them as small as possible.
组合方法的思想是你所有的方法中每个方法应该做也只能做一种事情,尽量使他们短小精悍。
Composed method encapsulates the idea that all your methods should do one and only one thing, making them as small as possible.
组合方法的思想是你所有的方法中每个方法应该做也只能做一种事情,尽量使他们短小精悍。
应用推荐