While this is hardly an easy task with code base that has grown out of control, without refactoring the only solution you can look up to is the complete rewrite.
这对于那些业已脱离控制的代码库而言并非易事,如果不诉诸于重构,那么唯一的解决之道就是彻底地重写。
Refactoring is changing the structure of a program without changing its functionality.
重构是指在不改变程序功能的前提下改变其结构。
Without good understanding of what the code is actually doing, refactoring you can really perform with confidence will bring only small improvements.
若是不能切实地理解代码的意义,则你真正能够对重构保有信心的只能是一些细微的改进。
Refactoring differs from automated code generation in that it restructures the code without changing the functionality.
重构不同于自动代码生成,它重新构造了代码,却没有改变其功能性。
Although this can often be done without impacting the users, you must be able to identify component users in the cases where reengineering and refactoring will impact them.
尽管这通常可以在不影响用户的情况下完成,但在再工程和重构将影响组件用户的情况下,必须能够标识这些组件用户。
Refactoring is the technique of improving code without changing functionality.
重构是一种改进代码但不改变功能的技术。
If you follow the mechanics closely like a cookbook recipe, you should be able to learn the refactoring without much trouble.
如果您象按照食谱那样严格遵循这些技术,那么您在学习重构时应该没有太大的麻烦。
As I said before, I would be nervous about refactoring without tests.
就象我以前所说的那样,重构而不进行测试我会感到不安。
Refactoring lets you incorporate that learning into your code without breaking the tests.
重新划分让您将学到的知识加入到代码中,同时又不会破坏测试。
A code refactoring is a simple change to source code which improves the design without breaking anything nor adding anything.
代码重构是对源代码的简单变更,是在不破坏任何东西,且不添加任何东西的情况下改进设计。
Similarly a database refactoring is a simple change to a database schema which improves the design without breaking nor adding anything.
类似的,数据库重构是对数据库方案的简单变更,是在不破坏且不添加东西的情况下改进设计。
Refactoring is improving the design of existing code without changing its results.
重构是在不改变代码结果的前提下改进现有代码的设计。
There are different design considerations for multi-tenancy, but the critical one which can be tackled without code refactoring is addressing single vs. separate storage for different tenants.
多租户有一些不同的设计问题,但是其中不需要进行代码重构就能够解决的一个重要问题是使用一个还是多个存储来保存不同用户的数据。
I dearly hope you don't copy and paste the included script without at least thinking about breaking it into template pieces and refactoring it.
我建议您不要完全复制和粘贴这里包含的脚本,至少应该考虑将它分解成模板片段并进行重构。
Refactoring scripts allow you to easily upgrade your applications without worrying about clients having to spend hours looking through documentation to figure out what broke their code.
重构脚本可以让您轻松地进行应用程序的升级,而不必担心客户需要花上几小时的时间去遍览文档以找出代码被破坏的原因。
The model of services becomes an essential tool for agile development in a SOA, because without it, it is very hard to control service refactoring.
服务模型成为SOA中进行敏捷开发的基本工具,因为没有该工具,就很难控制服务重构。
Added emphasis on refactoring and automated testing improves designs dramatically without the need for notebooks full of class diagrams.
对重构和自动化测试的特别重视动态地改进了设计,而且免去了画满类图的笔记本的需要。
Refactoring is the act of improving the internal structure of code without changing its external behavior 14.
重构是在不变外部行为的基础上,提升代码内部结构的行为14 。
Refactoring can work just as well without unit tests.
没有单元测试重构照样能够工作。
Without functional testing, Web development becomes a guessing game that can be filled with frantic, error-prone deployments and refactoring.
如果没有功能测试,Web开发就像猜谜游戏一样,容易出现错误的部署和重构。
Allows existing SaaS applications which use Hibernate, but do not yet need sharding, to adopt the solution without major refactoring if and when they do reach this stage.
允许使用Hibernate、但尚不需要分片的SaaS应用程序采用解决方案,而无需重大重构,前提是它们确实达到了这个阶段。
Fortunately, in the late 1990s, Martin Fowler's book Refactoring (see Resources) helped make the practice of improving existing code without changing external behavior - well - cool.
幸好,在20世纪90年代末,MartinFowler编写了Refactoring一书(参见参考资料),它使得在不改变外部行为的前提下改进现有代码成为可能。
With the refactoring tools in 3rdrail, developers can reorganize their application code without changing the results.
使用3rdrail中的重构工具,开发人员可以在不改变运行结果的前提下对应用代码进行重新组织。
Up until then, I had been refactoring my code (and even other's code) without knowing it.
在此之前,我一直都在重构我的代码(或者其他人的代码),但是却不知道自己做的就是重构。
Using refactoring, you can easily make changes to your code without worrying about breaking things somewhere else.
使用重构,您可以轻松更改您的代码,而不必担心对别处造成破坏。
When working with a discrete partition, for instance, you can't perform a rename refactoring without being able to check out and modify every other partition that needs to be updated by the action.
举例来说,当处理一个离散的划分时,您就不能在没有核对和修改需要该操作来更新的每一个其他划分的情况下执行一个重命名操作。
Fixing architecture as you go (i.e. refactoring) without some initial architectural design is not appropriate for large-scale enterprise systems.
边做边修改架构(重构)而没有一些初始的架构设计,对大型企业系统来说是不适合的。
Refactoring [Fowler] is a process of modifying code to improve quality without necessarily adding new behavior.
重组[Fowler]是不必增加新行为而修改代码以提高其质量的过程。
Martin Fowler: Refactoring is making changes to a body of code in order to improve its internal structure, without changing its external behavior.
马丁:重构就是对代码本身做修改,以改善它的内部结构,但又不改变它的外部表现。
Transforming a program like this-changing the design without changing the behavior-is another example of refactoring (see Section 4.7).
上面这种方式对程序进行的修改只是改变了设计,而不改变程序的行为,这就是重构的另一个例子(参考4.7)。
应用推荐