Duplicated code is the worst "bad smells". Kontogiannis metrics is a technique of detecting the duplicated code.
重复代码是程序中最常见的代码“坏味道”,Kontogiannis度量是检测重复代码的一种量化方法。
参考来源 - 重复代码检测技术的研究In this thesis an automatic method which is used to detect the dis- contiguous parameterized duplication code is introduced.
本文介绍了一个自动的检测程序中非连续参数化重复代码的方法。
参考来源 - 程序中重复代码的自动检测·2,447,543篇论文数据,部分数据来源于NoteExpress
不要用重复代码的形式写注释——让每个注释都有意义。
Don't just echo the code with comments - makeevery comment count.
从低层次的重复代码中抽象出来,提高软件工程的生产效率。
Increase the productivity of software engineers by abstracting from low-level boilerplate code.
开发者必须重复代码中已有的信息,从而将配置和代码联结起来。
They have to repeat information already in the code in order to connect the configuration to the code.
Now I have the ability to create a loop, that is, to reuse the same pieces of code over and over again as I go around.
现在我们已经学会如何创建循环了,也就是,重复的一遍又一遍的,执行同一片代码。
I'm again, iterating with this four loop, same code as before.
我再次,重复使用for循环,同样的代码。
应用推荐