Duplicated Code (重复的代码):Extract Method ,Pull Up Method,Form Template Method,Substitute Algorithm 2、Long Method(过长函数):Extract Method,Repl...
基于108个网页-相关网页
...Don't Repeat Yourself Principle Make It Easy to Reuse(让复用变得容易) 魔法数(Magic number) 重复性代码(Duplicated Code) 接口不同的相似类(Alternative Classes with Different Interfaces) 系统分离关注点 系统架构的基础通用服务组件 通过某项目代码...
基于67个网页-相关网页
duplicated code detecting 重复代码检测
Duplicated code is the worst "bad smells". Kontogiannis metrics is a technique of detecting the duplicated code.
重复代码是程序中最常见的代码“坏味道”,Kontogiannis度量是检测重复代码的一种量化方法。
参考来源 - 重复代码检测技术的研究·2,447,543篇论文数据,部分数据来源于NoteExpress
Using a tool like CPD, however, quickly reveals duplicated code, which you can then improve.
但是,使用诸如 CPD 之类的工具,就可以迅速找出重复代码,然后对此进行改进。
The PMD plugin for Eclipse provides a feature called CPD (or Copy Paste Detector), which finds duplicated code.
Eclipse的PMD插件提供了一项叫做CPD(或复制粘贴探测器)的功能,用于寻找重复的代码。
Often, long methods and large classes are indications of other code smells, such as conditional complexity and duplicated code.
通常,长方法和大类也暗示着存在其他代码味道,如条件复杂度和重复代码。
应用推荐