When do you need to refactor?
什么时候要重构呢?
Let's refactor this code a bit.
让我们稍微对该段代码进行重构。
Refactor and rename within user code
在用户代码内重构和重命名
Stop feature development and refactor.
停止开发特性,进行重构。
When do you refactor?
什么时候进行重构呢?
Refactor the code.
重构代码。
Refactor your code and automate your tests.
重构代码并自动化测试。
They refactor code to make it more testable.
他们重构代码,让代码更加易于测试。
Refactor your original code to look like this.
重构您的原始代码,使其看起来如下所示。
The difficulty lies with finding what to refactor.
比较困难的地方在于确定对哪些内容 进行重构。
However, I prefer to refactor existing code instead.
但是我更愿意重构已有的代码。
With closures, you can also refactor from the outside in.
有了闭包,您也可以从外到里进行重构。
Do refactor. I cannot stress the value of this enough.
重构其价值如何强调都不过分。
Programmers now have management's blessing to refactor.
现在程序员已经得到了管理层的授权去重构。
You can now refactor local maps into submaps, and vice versa.
现在可以把局部映射重构为子映射,或者相反。
With this step, you refactor the code that causes the problem.
在这一步中,您将重构导致问题的代码。
The question then becomes How do I know when I should refactor?
那么问题就变成了“我怎么才能知道什么时候该进行重构呢?”
You can refactor the code to make the stylesheet much simpler.
您可以重构代码以简化样式表。
Renaming directly in the diagram can be a simple rename or refactor.
在图中直接重命名可以是一个简单的重命名或者重构。
In part 3, you'll refactor the rock star application built in this part.
在第3部分中,您将重构本文所建立的摇滚巨星应用程序。
You should refactor the code to separate the various application layers.
应当重构代码以分离各个应用层。
Before you build that stylesheet, let's look at how to refactor the code.
在构建该样式表之前,我们来查看一下如何重构代码。
Tools can recognize errors and effectively restructure, or refactor, code.
工具可以识别错误和有效地重构代码。
A laudable goal for any project is a code base that is easy to refactor.
对任何项目来说,值得称赞的一点就是拥有可以轻松进行重构的代码库。
To make this program double-buffered, you need to refactor the code slightly.
为了让这个程序进行双缓冲,需要对代码略加重构。
We eventually learned to refactor those solutions with remedies like facades.
我们最终学会了使用类似于虚包的修正方法来重构这些解决方案。
To refactor the code, start moving the style information to a CSS stylesheet.
要重构代码,首先将样式信息移到css样式表中。
Your job is easier if you have the freedom to refactor the code you're testing.
如果能够自由地重构正在测试的代码,您的工作会简单些。
Better to refactor the authentication information into an external properties file.
较好的方法是将身份验证信息重构到外部属性文件中。