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.
如果我想以白盒方式验证这段代码,就必须将特定于用户界面的代码与业务代码分开,这就需要进行重构。
Take refactoring as an example.
重构即为一例。
Another key part is refactoring.
另一个关键部分是重构。
什么是重构?
The benefits of this refactoring are many.
这个重构有许多益处。
This helps when you perform major refactoring.
在进行大的重构时它会提供帮助。
Every refactoring can be decomposed like this.
重构都可以像这样来拆分。
The move refactoring automatically takes place.
移动重构将自动执行。
You can invoke this refactoring from the editor.
此重构可以从编辑器调用。
So the lesson here is simple: Never stop refactoring.
因此,这里的教训很简单:永远不要停止重构。
A refactoring consists of many small, technical steps.
重构由许多小的技术性步骤组成。
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则从第三方供应商得到对重构的支持。
The great thing about refactoring is how simple it can be.
重构的伟大之处就在于它的简单。
A dialog box displays asking you to confirm the refactoring.
这时会出现一个对话框,要求确认这个重构。
The point of refactoring is to improve the design of existing code.
重构的目的是改善现有代码的设计。
But refactoring also encompasses environmental factors for your project.
但是重构也包含项目的环境因素。
However, these differ from refactoring in that they add new functionality.
不过,这些特性与重构不同,因为它们添加了新功能。
And implementing this technique will most likely require code refactoring.
并且,实现这种技巧最有可能需要代码重构。
This, coupled with a good tool, makes first steps in refactoring a breeze.
再加上一个好的工具,迈开重构的第一步简直就是轻而易举。
Rename refactoring is probably the most commonly used of all the refactorings.
重命名重构可能是所有重构中最常用的。
Heck, we've even managed to categorize refactoring into a handy set of patterns!
我们甚至已经设法将重构分类成一系列便利的模式!
Testing, like refactoring, should be a natural part of the development process.
和重组一样,测试也应是开发过程的自然组成部分。
For several days now, my colleagues and I have been refactoring our eLearning code.
最近几天,我和同事们重构了一下我们电子教学系统的代码。
A benefit of refactoring is that the code is probably easier for programmers to maintain.
重构的优点是程序员可以更轻松地维护代码。
Up until then, I had been refactoring my code (and even other's code) without knowing it.
在此之前,我一直都在重构我的代码(或者其他人的代码),但是却不知道自己做的就是重构。
应用推荐