目前的IDE重构工具不会捕捉这种变化。
TDD实践也需要单元测试工具和重构工具的配合。
Similarly TDD practice requires a unit testing tool and a refactoring tool.
不仅仅依赖自动重构工具,确保您可以进行智能重构。
Rather than merely rely on automated refactoring tools, make sure that you do intelligent refactorings.
清单2中的代码展示了一些自动化重构工具的固有缺点。
The code in Listing 2 shows the inherent weakness of any automated refactoring tool.
InfoQ:还有什么其他新的重构工具和功能(除了针对注解的)吗?
InfoQ: What other new refactoring tools and capabilities are available (outside those for annotations)?
现代IDE一般都配备了“智能”编辑器和令代码变更容易的强大的重构工具。
Modern IDEs come equipped with "intelligent" editors and powerful refactoring toolkits that make code changes easy.
重构工具与编译器自身可以提供一定的安全保障,不至于引入一些简单的人为错误。
Refactoring tools and compiler itself can bring limited safety net that you can count on to catch some simple human mistakes.
您可以使用Eclipse的重构工具从清单3中的Person类轻松提取一个接口。
You can use Eclipse's refactoring tools to easily extract an interface from the Person class in Listing 3. Let's call that a Thing.
这意味着所有语法树都能够转换回源代码,这对于代码生成器和重构工具都是非常重要的功能。
This means any syntax tree can be turned back into source code, an important feature for code generators and refactoring tools.
除了这种例外情况以外,本文下面几节都是按照上面的顺序来讨论Eclipse重构工具的。
Apart from this exception, the sections that follow will discuss Eclipse's refactoring tools in this order.
这一策略允许使用强大的代码重构工具,而使用静态类型语言的同样方法来实现此功能则困难得多。
This strategy allows powerful code refactoring tools, which are much more difficult to achieve using the same methods for statically typed languages.
使用3rdrail中的重构工具,开发人员可以在不改变运行结果的前提下对应用代码进行重新组织。
With the refactoring tools in 3rdrail, developers can reorganize their application code without changing the results.
遗憾的是几乎没有自动化的重构工具对它提供支持,这也是工程实践中运用重构技术的最大障碍。
Unfortunately, almost no automatic tools about refactoring can be in hand for benefit of our development at present, as has been the intractable problem in refactoring field.
只要您知道Eclipse实现了什么样的重构工具,并理解了它们的适用情况,您的生产力就会得到极大的提高。
Knowing what refactoring tools Eclipse makes available, and understanding their intended USES, will greatly improve your productivity.
JetBrains是重构工具的先行者,所以我们希望Ruby开发者能够有一系列稳定的代码重构工具。
JetBrains is the pioneer in creating refactoring tools, so we wanted Ruby developers to have a set of reliable Ruby code refactorings.
在这种情况下,可以使用IntelliJ的重构工具把ReferenceStrength移到一个更高层次的包中。
In this case, ReferenceStrength can be moved to a higher-level package using IntelliJ's refactoring tools.
关于XP(极限编程),正如之前所说,现代的重构工具支持对现有代码便捷地添加接口同时与XP(极限编程)保持一致。
Regarding XP, as I mentioned earlier, the modern refactoring tools allow you to introduce interfaces into existing code easily and therefore is consistent with XP.
重构工具做不到这一点,因为它不能考虑到这样一个决策细节的严重影响 —比如线程问题、命名和在其他方法中的可用性。
The refactoring tool won't do this because it can't take account of the serious implications — such as threading concerns, naming, and availability in other methods — that such a decision entails.
这些重构工具并没有Eclipse提供的其他工具那么常用,但是很有价值,因为它们能够执行非常复杂的任务。
These refactorings aren't as generally useful as the other types of refactorings that Eclipse has to offer, but are valuable because they perform fairly complex tasks.
但即便您并没有使用要求进行正式重构的方法,Eclipse的重构工具还是可以在进行一般的代码修改时提供节约时间的方法。
But even if you are not using a formal method that requires refactoring, Eclipse's refactoring tools provide a time-saving way to make common types of code changes.
Eclipse的重构工具可以分为三大类(下面的顺序也就是这些工具在Refactoring菜单中出现的顺序)。
Eclipse's refactoring tools can be grouped into three broad categories (and this is the order in which they appear in the refactoring menu).
用Ruby写代码分析、重构工具和自动重构、格式程序等等甚至更多的工具并非不可能,但是很困难,因为还没有用Ruby代码分析Ruby源码的先例。
Code analyzers, refactoring tools and automated refactorings, formatters and more, are difficult, if not impossible, to write in Ruby, because there is no way to parse Ruby source with Ruby code.
一个好消息是,代码重构工具被嵌入到现代集成开发环境(integrated development environment,IDE)中了,例如eclipse。
The good news is that code refactoring tools are built into modern integrated development environments (IDEs) such as Eclipse.
ExtractConstant与Extract LocalVariable相似,但是您必须选择静态常量表达式,重构工具将会把它转换成静态的final常量。
Extract constant is similar to Extract Local Variable, but you must select a static, constant expression, which the refactoring will convert to a static final constant.
其新的开发流程和生产工具的改进(如重构、调试和代码生成)也是一个看点。
Its new development workflow and improvements on productivity tools like refactoring, debugging and code generation are also highlights.
然而,它并不包括现在的重构技术,单元测试工具和技术,等等。
However, it does not include today's refactoring techniques, unit testing tools and techniques, and so on.
重构显然是紧急设计的一个重要工具—同时考虑机制和环境因素。
Refactoring is obviously an important tool for emergent design - one that entails both mechanical and environmental concerns.
工具还能用它来分析代码,例如,可以提供自动化重构。
It is also used by tools that analyze code, for example to provide automated refactorings.
再加上一个好的工具,迈开重构的第一步简直就是轻而易举。
This, coupled with a good tool, makes first steps in refactoring a breeze.
再加上一个好的工具,迈开重构的第一步简直就是轻而易举。
This, coupled with a good tool, makes first steps in refactoring a breeze.
应用推荐