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 is the worst "bad smells". Kontogiannis metrics is a technique of detecting the duplicated code.
重复代码是程序中最常见的代码“坏味道”,Kontogiannis度量是检测重复代码的一种量化方法。
参考来源 - 重复代码检测技术的研究·2,447,543篇论文数据,部分数据来源于NoteExpress
The “find matching clones” looks for duplicated code.
使用“寻找匹配副本”功能,我们能够找到重复的代码。
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(或复制粘贴探测器)的功能,用于寻找重复的代码。
应用推荐