复制代码时经常会发现预料之外的依赖性。
Frequently, when copying code, I unearth unexpected dependencies.
HTML复制——以HTML的格式复制代码。
要查看区别,请用向导生成、复制代码,并与这个示例进行比较。
To see the differences, go to the wizard to generate, copy, and compare it with this example.
代码复制令软件程序更难于维护,同理,构建脚本中的复制代码也存在这样的问题。
And just as code duplication can make a software program more difficult to maintain, so too does duplicate code in build scripts.
实际上,甚至很多流行的开放源码项目都存在20%到30%的复制代码。
In fact, even many popular open source projects have duplication percentages in the 20-30 percent range.
当在缺少预先OO设计的情况下使用时,没有任何操作会像在类之间复制代码那样具有破坏性。
When used in the absence of an up-front OO design, nothing creates more havoc than copying code from one file to the next.
这些任务描述如何通过在开发环境中工作,向项目中添加项以及复制代码段来创建应用程序的各个部分。
These tasks describe how to create parts of the application by working in the development environment, adding items to the project, and copying code snippets.
你可以在每一个测试程序中通过复制代码来为注册用户编号,或者你可以使它成为一个单一的,可调用的例行程序。
You could copy the code to handle the login into every test program, or you can make it into a single, callable routine.
不是特别的组合。我相信Bryce胶皮与我们所有的炭板球拍配合的非常完美,只要目标是“不妥协的攻击”。复制代码。
No, I believe the BRYCE-rubbers and the blades with our Carbon-technology match perfectly, when the aim is un-compromised offence.
必须将这种分解后的常用查找代码复制到使用这种模式的每个客户端上。
The common lookup code that we factored must be duplicated in every client where we want to use this pattern.
此时我们可以(而且应该)将此分支公开发布到主干上,比如将工作分支上所有的新代码复制到主干上。
At that point we can (and should) publish to the trunk, i.e. take all new code on the work branch and copy over to the trunk.
是否需要针对所有货币代码和公司复制历史汇率。
Whether you want to copy historical rates for all currency codes and companies.
有时,复制粘贴某些代码要比将该行为泛化到另一个类更简单。
Sometimes, it's easier to copy and paste some code than to generalize the behavior into another class.
是否需要针对特定公司或特定货币代码复制历史汇率。
Whether you want to copy historical rates for specific companies or specific currency codes.
然后,可以多次调用该模板,从而避免复制和粘贴代码。
You can then call the template multiple times, to avoid having to copy and paste code.
要避免规则代码的复制,创建中间事实是一个很有用的模式。
Creating intermediate facts is a useful pattern to avoid duplication of rule code.
代码复制使设计变得更加模糊,因为您无法找到惯用模式。
Duplication in code obscures the design because you can't find idiomatic patterns.
清单10展示了修改后的代码,它将复制的代码放到一个方法中。
Listing 10 shows the code modified to put the copied code into one method.
这段代码可以复制并粘贴,并根据配置作适当的修改。
You can copy and paste the preceding block of code and modify it according to your own configuration.
复制函数的代码非常密集,如清单4所示。
The code for the replication functions is very dense, as shown in Listing 4.
第二个方法是研究现有协作代码,然后复制其现有代码。
The second way is to explore the existing collaboration code and then to copy existing code.
根据这些权利,软件的作者是软件惟一的所有者,可以全权控制代码如何复制、销售和重用。
According to these rights, the author of a piece of software is its sole proprietor and has complete control over how the code is reproduced, sold, and reused.
现在我要把这段代码,复制到,大文件中的各个部分。
Right now, I have to take that piece of code and replicate it everywhere I want in my larger file.
CPD:来自PMD小组的免费代码复制工具。
CPD: a freely available code duplication tool from the PMD team.
这样,您可以以不同的方式显示同一个Action的结果而不用复制任何Action代码。
Thus, you can present the results of the same Action in different ways and not duplicate any Action code.
为了向中介添加基本功能,请将下面清单2中的代码复制并粘贴到中介的handle方法。
To add basic functionality to your mediation, copy and paste the code in Listing 2 below to the handle method of your mediation.
复制现有代码总是要比自己构造要简单的多。
Copying existing code is always simpler than constructing your own.
我准备使用反射(reflection)来创建一种通用的排序基础设施,其中不会涉及大量复制的样板代码。
I'm going to use reflection to create a generic sorting infrastructure that doesn't have so much duplicated, boilerplate code.
只需将OmniFindConfigBeanInfo中的代码复制并粘贴到自己的类中,然后根据需要修改、添加或删除属性。
You should simply be able to copy and paste the code from OmniFindConfigBeanInfo into your own class and alter, add, or remove properties accordingly.
只需将OmniFindConfigBeanInfo中的代码复制并粘贴到自己的类中,然后根据需要修改、添加或删除属性。
You should simply be able to copy and paste the code from OmniFindConfigBeanInfo into your own class and alter, add, or remove properties accordingly.
应用推荐