code duplication中文,code duplication的意思,code duplication翻译及用法

2025-10-08 08:28 浏览次数 8

code duplication

代码重复

code duplication 例句

英汉例句

  • this logic in the session bean will force the clients to always do the right thing, ensuring consistency in the application and preventing code duplication at the client side.

    会话bean中的这个逻辑将强制客户机一直做正确的事情,确保应用程序中的一致性并防止客户端的代码重复。

  • this article「s code examples (see download to obtain the full package) show how to use these interfaces to facilitate auditing and reduce code duplication in data access objects (daos).

    本文的代码示例(在 下载中可以获得完整的代码包)演示如何使用这些接口帮助执行审计和减少数据访问对象(dao)中的代码重复。

  • but the problem with this approach is, it will introduce code duplication and related issues.

    但是,这种方法是,将推出代码重复的问题和有关问题。

  • cpd: a freely available code duplication tool from the pmd team.

    cpd:来自pmd小组的免费代码复制工具。

  • there」s a bit of code duplication in the person class, but i「ll leave that for a later refactoring exercise.

    在person类中有一些重复的代码,但我把它留给稍后的重构练习。

  • if the resulting code duplication offends your sense of style, try splitting the test suite into smaller, more modular classes, in each of which all initial data is shared among all test methods.

    如果形成的代码副本不合您的风格,请尝试把测试套件分成更小、更模块化的类,以便所有的初始数据可以在全部测试方法之间共享。

  • you can reduce code duplication by abstracting the common behavior and including it in the generic dao, where all users of the class will have access to the functionality.

    提取通用行为并把它们包含在泛型dao 中,让类的所有用户通过泛型dao访问这些功能,这样就可以减少代码重复。

  • pmd」s cpd: enables discovering code duplication

    pmd的cpd:帮助发现代码重复

  • notice any code duplication there?

    注意是否有任何代码复制的现象?

  • the generic dao pattern (also called typesafe dao) is critical to reducing code duplication in the data access tier.

    泛型dao模式(也称为类型安全的dao)对于减少数据访问层中的代码重复非常重要。

  • the measure for finding duplicated code is to search for code duplication within classes and among other classes in the code base.

    查找重复代码的度量方法是在代码库中的类的内部和其他类之间搜索代码重复。

  • by using a static analysis tool such as pmd's cpd or checkstyle, you can determine areas of high code duplication on a continual basis as part of running an automated build.

    使用诸如pmd的cpd或checkstyle这样的静态分析工具,您能够将整个分析过程作为自动构建的一部分,持续分析,确定代码重复度高的区域。

  • at first glance, this strategy seems like a good idea -- code duplication is a bad thing, so consolidating these duplicated paths should be an improvement.

    乍一看,该策略似乎是一个好方法 —— 但代码副本有错误,所以整合这些复制路径应该是一种改进。

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

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

  • reducing code duplication in the data access tier

    减少数据访问层中的代码重复

  • catching code duplication with cpd

    用cpd捕捉代码重复

相关热词