... Image(7) И 单元测试Unit Test - 重构的保障 Duplicated d Code(重复代码) Long Method(过长函数) ...
基于2个网页-相关网页
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
重复代码可能在代码库中悄然发生。
Duplicate code can creep into a code base unbeknownst to anyone.
即便如此还是有不少的重复代码。
But even with this, there is still a lot of code that just doesn't need to be there.
不要用重复代码的形式写注释——让每个注释都有意义。
Don't just echo the code with comments - makeevery comment count.
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循环,同样的代码。
应用推荐