• Duplicate code is a common problem on software projects.

    复制代码软件项目当中一个常见问题

    youdao

  • Duplicate code can creep into a code base unbeknownst to anyone.

    重复代码可能代码中悄然发生

    youdao

  • The duplicate code is, of course, the two private data members for street and city.

    当然重复代码表示街道城市两个私有数据成员

    youdao

  • Just after the annotations in Listing 2, can you spot two lines of duplicate code from Listing 1?

    清单2注释之后是否看到了来自清单1重复代码

    youdao

  • However, an appropriate goal is to ensure that duplicate code within the code base does not increase.

    然而确保代码中的重复代码不会增多这样目标可以实现的。

    youdao

  • Finding duplicate code manually can be quite challenging in all but the most obvious copy-and-paste violations.

    除了明显的复制-粘贴违规之外,所有地方手工查找重复代码非常具有挑战性

    youdao

  • Avoid duplicate code by abstracting out things that are common and placing those thing in a single location.

    通过抽取公共部分放置个地方避免代码重复

    youdao

  • Duplication always implies coupling, because changing one piece of duplicate code implies changing the other.

    复制意味着耦合因为改变复制代码意味着改变另一个代码。

    youdao

  • For example, if they see an opportunity for abstraction, they refactor to remove duplicate code from concrete implementations.

    例如如果他们看到抽象的机会,他们就会进行重构具体的实现中除去重复代码

    youdao

  • And just as code duplication can make a software program more difficult to maintain, so too does duplicate code in build scripts.

    代码复制软件程序难于维护,同理,构建脚本中的复制代码存在这样的问题。

    youdao

  • Finding duplicate code manually is challenging, but using a plugin like CPD, however, quickly reveals duplicated code while you are coding.

    靠人工来寻找重复代码项挑战使用CPD这样插件编码轻松地发现重复的代码。

    youdao

  • I'd rather write new code, but I enjoy taking some existing code and reducing complexity in a method or extracting duplicate code into a common class.

    喜欢编写新的代码喜欢采用一些现有的代码,某种方法将其简化重复的代码提取一个公共中。

    youdao

  • Refactoring: Refactor out any duplicate code generated in a coding session. You can do this with confidence that you didn’t break anything because you have the tests.

    求精(Refactoring):去掉编码过程中产生任何重复代码可以自信认为这么不会破坏任何东西,因为你还有测试作为后盾

    youdao

  • Another important principle is that in the first case we don't mind having some duplicate code. If it's clear how to eliminate duplication, we do, but we are willing to wait for clarity.

    还有另一个重要原则第一案例中我们介意一些重复代码如果能够明确如何消除重复代码,我们愿意这么做现在还没有,我们仍然希望能找到清晰的解决方案。

    youdao

  • Once you've run CPD, a report folder is created in your Eclipse root directory containing a file called cpd.txt, which lists all duplicate code. An example of the cpd.txt file is shown in Figure 9.

    一旦运行cpdeclipse目录下会创建出report文件夹其中包含一个叫做cpd. txt文件,文件所有重复代码

    youdao

  • Or you can duplicate and edit existing application code while leaving the original mixed UI and business logic in place.

    或者可以复制编辑现有应用程序代码同时保留最初的UI业务混合的情况。

    youdao

  • At the same time, recording all test scenarios can create duplicate test code when you're testing similar scenarios.

    同时,在测试与以前类似的场景时,记录所有测试场景创建重复的测试代码

    youdao

  • If you are just going to render a larger image or add more information, using the JSP tags will help you avoid a lot of duplicate JSP code.

    如果打算呈现一个较大图像添加更多信息,那么使用JSp标记帮助避免许多重复的JSp代码

    youdao

  • A more elegant solution might be to split package structure across two source directories for client-side and server-side code and to duplicate common classes into both directories.

    更好的解决方案结构分解成目录负责客户端代码,一个负责服务器端代码,然后公共复制到两个目录中。

    youdao

  • With SOAP encoding, the XML schema was generated directly from the service provider application data structures and the client code worked with a generated duplicate of those data structures.

    使用SOAP编码XML模式直接服务提供者应用数据结构产生客户代码使用这些产生数据结构副本进行工作

    youdao

  • CPD, which is part of the popular open source static analysis tool PMD, reports the number of duplicate lines in a code base.

    CPD流行开源静态分析工具pmd一部分,它报告代码重复行的数量

    youdao

  • Rather than duplicate the code that defines and manages these properties, you can create a common Account parent class that has a cash balance, and can handle credit and debit transactions.

    与其重复定义管理这些属性代码不如创建一个通用帐户(account),该类具有现金收支平衡并且可以处理借贷事务。

    youdao

  • Whether it is browser security protection, code library management, and even the detection of duplicate files stored in the media, hashing technology plays an important role.

    无论是浏览器安全保护代码管理乃至检测存储介质重复文件散列技术都在其中发挥重要作用。

    youdao

  • This method lives in the Radar class for logical reasons and to not duplicate the code.

    雷达逻辑的理由方法生活并不会重复代码

    youdao

  • Thus, you can present the results of the same Action in different ways and not duplicate any Action code.

    这样可以不同方式显示同一个Action结果不用复制任何Action代码。

    youdao

  • To order a key from a locksmith, the app produces a code that the locksmith can use to create the duplicate.

    直接向锁匠下单,应用会生成一个代码供锁匠配制钥匙

    youdao

  • Traditional parallelized compiler techniques use node splitting to make irreducible loops reducible, but will make code duplicate inevitably.

    传统并行编译器处理非可规约循环时一般使用结点分割法由此带来的代码复制是不可避免的。

    youdao

  • It might be that the two modules do similar things at one point, so the code in one module is effectively a duplicate of the code in the other.

    俩个模块方面相似事情这个很有可能的,那么这个模块代码实际上复制个模块的代码。

    youdao

  • If the calling code does catch the exception, the pipe consumer will still see the error, but there will not be a duplicate error.

    如果调用代码捕获异常管道使用者看到错误不会重复错误。

    youdao

  • If the calling code does catch the exception, the pipe consumer will still see the error, but there will not be a duplicate error.

    如果调用代码捕获异常管道使用者看到错误不会重复错误。

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定