duplicated code
重复 代码 repeating code
duplicate code
重复 代码
Some function with partially duplicated code . This is essential for player input and repeating code . Another function with partially duplicated code . Another issue was repeating code . You might now have some duplicated code . Combinations with other parts of speech
Usage with adjectives
More
Never ever duplicate code Avoid duplicating code at all costs. If you have duplicated code in two unrelated classes. Duplicate code makes your code smell really bad.Half of GitHub is duplicated code . Find duplicate code so that you can refactor. RemoveDuplicateScripts(删除重复代码 ). Some cleanup(removed duplicated code ). PMD can be used to detect duplicate code WEB. Atomic design also minimizes the risk of writing duplicate code . It would cause a lot of code repeating . This chapter also discusses the DRY principle and how not to repeat code . 重复代码 :相同或者相似的代码存在于一个以上的地方。Duplicated code : identical or very similar code exists in more than one location. 默认接口实现提供了一种强大的新方法来扩展实现接口的类,而无需重复代码 。 Default implementations of interfaces provide a powerful new way to extend classes that implement interfaces without having to duplicate code . 如果检查权限的逻辑在整段代码中重复很多次,在重复代码 中出现的问题将很难修复。 If the logic of checking permissions was repeated all over the code , it becomes difficult to fix issues that arise in the repeated code. . 它的主要问题是对复杂业务逻辑的支持不够,尤其是不善于处理重复代码 。 Its great failing is that it doesn't deal well with complex business logic, being particularly susceptible to duplicate code . 随着时间的推移,此方法会生成大量重复代码 ,这可能带来维护问题。 Over time, this approach generates a great deal of duplicated code , which can create maintenance issues. 以这种方式编写的代码将更灵活并能向函数调用者提供更多功能,同时不引入重复代码 。 In this way, the code we write can be more flexible and provide more functionality to callers of our function, while not introducing code duplication . 像JustCode这样新式的重构工具能轻松的让代码片段变成方法,从而减少重复代码 ,提高程序的可维护性。 Modern refactoring tools like JustCode make it easy to turn code blocks into methods, enhancing maintainability by reducing duplication in code . 重复使用DRY原则始终提倡二次利用代码,这是因为我们会将2个或2个以上重复代码 实例并入一个代码块。 DRY inherently promotes reuse of code because we are merging 2 or more instances of repeating code into a single block of code. . 在写代码之前你会注意到哪些地方可能出现重复代码 ,并考虑使用更合适的数据结构。 You will notice what areas you are repeating code in before you write it and will think through what data structures are most appropriate. 它包括一个基于Knative而建的Serverless附件,让针对GCF容器化的应用软件可在内部运行,因而消除了重复代码 。 It includes a serverless add-on, built on Knative, which allows an app containerized for GCF to run in-house, eliminating the need to eliminate duplicate code . 在编译语言中,用于编译程序的编译器可能被嵌入在使用eval的程序中;分开来的解释器有时也被使用,尽管这可能会导致重复代码 。 In compiled languages, the same compiler used to compile programs may be embedded in programs using the eval function; separate interpreters are sometimes used,though this results in code duplication . Will we replicate the code ?有关更多信息,请参见使用代码克隆检测功能查找重复代码 。 For more information, see Finding Duplicate Code by using Code Clone Detection.
Display more examples
Results: 363 ,
Time: 0.0185