One of them is composed method.
其中之一就是组合方法。
Here's an example of the benefits of composed method.
下面通过一个示例说明组合方法的好处。
The composed method pattern defines three key statements
组合方法模式有三条关键规则
Composed method encourages building software with lots of cohesive methods.
组合方法可以用许多内聚的方法构建软件。
Composed method helps design because it generates reusable building blocks.
组合方法生成可重用的构建块,有助于产生更好的设计。
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.
因此,我将根据组合方法模式重构这个方法,看看是否可以分离出原子性部分。
Its main body adheres to the goal of composed method: it reads like an outline of the steps it performs.
它的主体符合组合方法的目标:看起来像是执行的步骤的大纲。
Two things help achieve this result: expressive, readable languages and the composed method pattern.
有两种情况有助于实现这个结果:表达充分的、可读的语言和结构化函数模式。
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):方法中调用其他方法,而且这些被调用的方法基本上处于同样的抽象层次。
In that book, Kent defined a pattern called composed method. The composed method pattern defines three key statements.
在该书中,Kent定义了一种名为组合方法(composed method)的模式。
Composed method encapsulates the idea that all your methods should do one and only one thing, making them as small as possible.
组合方法的思想是你所有的方法中每个方法应该做也只能做一种事情,尽量使他们短小精悍。
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等补充技术相结合时尤其如此。
If you use composed method, you'll find much less need to have comments to delineate sections of code within methods (actual method calls do that), and you'll find that you use better method names.
如果使用组合方法,你会发现:不需要太多的注释来描述方法的代码段(实际上函数方法要求有注释),而且你能更好地命名函数。
In this case, the topologies serve as the reuse method, and can be composed to form larger topologies.
这种情况下,这些拓扑可以当作可重用的方法,也可以构成更大的拓扑。
This article described a general method for creating composed patterns from pre-existing patterns and explained how to design and implement one, using a detailed example.
本文描述了从已存在的模式中创建复合模式的普遍方法,并通过一个详细的例子解释了如何设计与实现。
This is a callback method that's invoked after all components are composed.
它是回调方法,在所有组件组装后调用。
This class in turn provides the normalize method, which you can use to convert a string to a normalized composed or decomposed form.
这个类反过来又提供了normalize方法,可用来将一个字符串转变为一个规范化了的组合或分解格式。
If your application is composed of multiple frames or dialogs, you will need to call the output method for each of them to get a complete picture of the application.
如果您的应用程序由多个框架或对话框组成,则您需要为每个框架或对话框调用out put方法,以全面地了解应用程序的情况。
It is composed of a pointer to the GObject that the method is being called on, an array of arguments, and an array of keyword arguments.
它由正在对其调用方法的GObject的指针、参数数组和关键字参数数组组成。
They conceptualize method as composed of approach, design, and procedure.
他们概念化的方法组成的方法,设计和程序。
Everything is hidden to the heart, this has been not best method in fact, I have composed but like this.
把一切埋藏到心底,其实这不是最好的方法,可我这样做了。
It explained the composed hardware, controlling method, configuration process, the operation environment of configuration software and the setting of controller parameter under this environment.
详述了该系统的硬件组成、控制方法、组态过程、组态软件的运行环境及在此运行环境下控制器参数的设定。
Proved by the experiment, put into the large-scale network composed by several subnets, this method can detect the misuse of any subnet with a high efficiency.
实验证明,在由若干子网组成的大规模网络中,该方法可以高效地检测出任意一个子网内是否存在网络误用。
Firstly, the obtained radar signal radio frequency, pulse width, repeat frequency are composed to get a combined probability assignment function of radar parameters by applying D-S method.
首先,对侦察雷达所能探测到的目标雷达信号的载频、脉宽、重频,应用证据理论将其组合,得到雷达参数的联合概率分配函数。
Although the general design method of the position loop composed of the position sensor is abnegate, but the information radar servo system has high orientation precision in this way.
采用该方法,虽然舍弃了由位置传感器构成位置回路的常规设计方法,但情报雷达伺服系统仍然有较高的定位精度。
Although the general design method of the position loop composed of the position sensor is abnegate, but the information radar servo system has high orientation precision in this way.
采用该方法,虽然舍弃了由位置传感器构成位置回路的常规设计方法,但情报雷达伺服系统仍然有较高的定位精度。
应用推荐