越老的遗留代码,您会找到越多的残留代码。
The older and crustier the legacy code is, the more vestigial code you'll find.
这些项目混杂着遗留代码和新写代码。
遗留代码的测试套件首先开始于一个单独的测试。
我的许多客户有太多的遗留代码,修改起来工作量太大。
Many of my clients have too much legacy code and momentum to change pervasively.
使用nose创建一个新规范,对遗留代码进行功能测试。
Functional testing legacy code with nose to create a new spec.
结果:可以更改应用程序或者遗留代码,以提供清晰的接口。
Consequences: Application or legacy code can be changed to provide a clean interface.
也就是说,您必须通过执行的遗留代码的结果标识业务流程。
In other words, you have to identify the business process by the outcome of the legacy code executed.
处理输出、继续建模、授权到遗留代码(请参见图5所示)。
Working with the output, continue modeling, delegating to the legacy code (see Figure 5).
NareshJain对于遗留代码有下面特别的的建议。
Naresh Jain had the following Suggestions specifically for legacy code.
对于遗留代码,应该考虑应用程序在做什么而不是考虑单个方法。
For legacy code, rather than looking at individual methods, look at what the application is doing.
在CICSTS 3.1上部署服务定义以及所生成的遗留代码。
Deploy the service definitions, along with the generated legacy code, on the CICS TS 3.1.
然而,遗留代码几乎不考虑可测试性,因此,您必须消除这样的阻碍。
However, testability has rarely been a consideration for legacy code, and consequently, you have to pull stunts like this one.
在获取遗留代码过程中最重要的需求之一是标识代码所表示的业务流程。
One of the most important needs in salvaging the legacy code is to identify the business processes that the code represents.
特别地,遗留代码的类(文件)的实际分组范型,如果有,应该是知道的。
In particular, the actual grouping paradigm of the classes (files) of the legacy code, if any, should be known.
遗留代码中是否存在将导致难于随时间推移而停用遗留系统的代码依赖性?
Are there code dependencies in the legacy code that will make it difficult to retire the legacy system over time?
即使您有一个大规模的未经测试的遗留代码基础,现在就开始为它编写测试吧。
Even if you have a large, untested legacy code base, start writing tests for it now.
您拥有不理解的遗留代码,并且,您拥有调用您不理解的代码的新代码。
You have legacy code you don't understand, and you have new code that calls code you don't understand.
要从现有遗留代码库收集代码,首先必须找到这些代码并确定其重用价值。
To salvage code from an existing legacy code base, you first have to locate that code and determine its worthiness for reuse.
尽管使用这种方式设计应用程序不利于长期维护,但是它确实存在于大型遗留代码库中。
While designing an application in such a way is never a good idea for long-term maintenance, it often exists in large legacy codebases.
然而,在遗留代码上禁用这些选项会有风险,因为它们可能取决于其设置来实现正确执行。
Disabling these options on legacy code can be risky, however, since they may be depending upon them being set for proper execution.
由于各种原因(遗留代码、人力、预算、优先级),一些使用者可能无法及时地进行迁移。
For a variety of reasons — legacy code, manpower, budget, priorities — some consumers may not migrate in a timely fashion.
设计接口是一个面向对象的极好实践,但是我们没办法总能得到遵循此种设计原则遗留代码。
Programming to interfaces is a good oo practice, but we are not always presented with legacy code that follows the practice.
凡是在遗留代码集中出现单件查找的地方,稍加修改即可换用服务定位器来查找同样的组件。
Wherever there are singleton lookup in the legacy codebase, a small change is made to lookup the same component via the service locator instead.
从遗留代码创建Web服务的第三步(也是最后一步)是将Web服务链接到上层的业务流程。
The third and final step in creating Web services from legacy code is to link the Web services to the overlying business processes.
当第一次在遗留代码基上使用复杂性度量时,您将了解到一个庞大的数量,但不要就此停住脚步。
You'll learn a tremendous amount the first time you use complexity metrics on your legacy code base, but don't stop there.
一些现有的遗留代码可以组件化,并公开为服务以供新系统使用,直到将遗留代码替换为新组件。
Some of the existing legacy code can be componentized and exposed as services for use by new systems until such time as such legacy code is replaced with new components.
本文使用jEdit 做为例子,向您展示如何为从未测试过的遗留代码开发一个单元测试套件。
This article shows you how to develop a unit test suite for legacy code that's never been tested, using jEdit as an example.
它还在新代码和遗留代码之间提供一个保护层,以确保这两种类型的代码不致于对彼此造成不利影响。
It also provided a layer of protection between new and legacy code, ensuring the two types of code did not inappropriately affect one another.
除了遗留代码负担,您的生产要求可能发生了变化,或者,新的供应商api只提供python版。
In addition to the legacy code burden, your production requirements may have changed, or newer vendor APIs are available only in Python.
如果愿意,甚至可以混合使用这两种方式,让遗留代码用描述符指定ejb,而用注解声明新的EJB。
You can even mix approaches if you wish, allowing legacy code to specify EJBs using descriptors while new EJBs are declared with annotations.
应用推荐