This is useful when a method is too big and you want to subdivide blocks of it into different methods.
如果一个方法太大并且您想要把此方法再细分为不同的方法,这个重构将很有用。
For instance, if you want to subdivide each of the two grids in the previous listing into two units where one unit is twice as wide as the other, you write the code shown in listing 10.
举例来说,如果您希望将之前清单中的两个网格继续划分为两个单元,其中一个单元是另一个单元的两倍宽度,可以编写如清单10所示的代码。
Areas allow you to subdivide a project into smaller, more manageable sections.
区域使你可以将项目分成多个更小的、更容易管理的部分。
We organize them. We subdivide these into units of two for example, groups of two like this or we have an undifferentiated stream like this.
我们把它们重新组织,把它们分成两个一组,比如像这样的两个一组,或者我们可以有一个没有差别的节奏串,像这样
Of course,if we take the version of the body view that what I am, essentially--the crucial body part--is my brain, then we really would have to subdivide A into two parts: early A and late A.
当然,如果我们认同肉体观点,我的存在,取决于肉体的关键,就是我的大脑,那么我们又要将A阶段继续分为早期和晚期阶段。
应用推荐