If I want to validate this code in a white box manner, I have to separate UI-specific code from business code, which requires some refactoring.
如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
Every refactoring can be decomposed like this.
重构都可以像这样来拆分。
The move refactoring automatically takes place.
移动重构将自动执行。
Internal refactoring to remove wrinkles in architecture.
内部重构以除去架构中的瑕疵。
Writing test cases first lowers your risk in refactoring.
先编写测试用例会降低重构中的风险。
Current IDE refactoring tools wouldn't catch this change.
目前的IDE重构工具不会捕捉这种变化。
VB gets its refactoring support from third-party vendors.
VB则从第三方供应商得到对重构的支持。
A dialog box displays asking you to confirm the refactoring.
这时会出现一个对话框,要求确认这个重构。
With refactoring, if the code breaks, your tests will tell you.
重构时,如果代码崩溃了,测试将告诉您。
What have I achieved by going through this refactoring exercise?
我通过前面的重构得到了什么?
Bill Venners: How does refactoring change the role of upfront design?
比尔:重构如何改变了预先设计的地位?
Listing 8 shows the corresponding refactoring that occurs in the view.
清单8显示了该视图中发生的相应重构。
UML diagrams are also updated automatically as part of the refactoring.
uml图作为重构的一部分,也自动地更新。
But refactoring also encompasses environmental factors for your project.
但是重构也包含项目的环境因素。
However, these differ from refactoring in that they add new functionality.
不过,这些特性与重构不同,因为它们添加了新功能。
This, coupled with a good tool, makes first steps in refactoring a breeze.
再加上一个好的工具,迈开重构的第一步简直就是轻而易举。
Similarly TDD practice requires a unit testing tool and a refactoring tool.
TDD实践也需要单元测试工具和重构工具的配合。
These tests will enable you to be less concerned about refactoring data types.
这些测试将使您能够不必太关心重构数据类型。
Rename refactoring is probably the most commonly used of all the refactorings.
重命名重构可能是所有重构中最常用的。
Agile processes rely on frequent refactoring and unit tests to improve designs.
敏捷流程依赖频繁的重构和单位测试来改进设计。
When doing agile development, you don't want anything that hampers refactoring.
当进行敏捷开发的时候,你不希望出现任何阻碍重构的事情。
Heck, we've even managed to categorize refactoring into a handy set of patterns!
我们甚至已经设法将重构分类成一系列便利的模式!
For several days now, my colleagues and I have been refactoring our eLearning code.
最近几天,我和同事们重构了一下我们电子教学系统的代码。
The code in Listing 2 shows the inherent weakness of any automated refactoring tool.
清单2中的代码展示了一些自动化重构工具的固有缺点。
Because of this I really like to use patterns after the fact, refactoring to patterns.
正因为如此,我喜欢在事后使用模式,重构程序,让模式显现出来。
Up until then, I had been refactoring my code (and even other's code) without knowing it.
在此之前,我一直都在重构我的代码(或者其他人的代码),但是却不知道自己做的就是重构。
Let's do one last refactoring; let's convert the script into a compiled, command-line tool.
让我们来做最后一次重构;让我们把这段脚本变成一个编译好的命令行工具。
Refactoring: no refactoring, making it harder to identify common workflow chunks for reuse.
重构:没有重构,要找出可重用的公共工作流块会很困难。
Having some insight into these issues will alleviate painful and complicated refactoring work later.
对这些问题有一些了解之后,您在稍后可以更加轻松地完成复杂的重构工作。
应用推荐