Provide training that covers Code Smells, Refactoring, Unit Test and Test Driven Development.
提供一些培训,包括代码的坏味道,重构,单元测试和测试驱动开发等。
This gives you a framework for consistently finding and fixing code smells in a repeatable manner.
这为您提供了一个以可重复的方式一致地查找和修复代码味道的框架。
Often, long methods and large classes are indications of other code smells, such as conditional complexity and duplicated code.
通常,长方法和大类也暗示着存在其他代码味道,如条件复杂度和重复代码。
I'm confident that the examples in this article will help you use static analysis tools to find other types of code smells than the ones I've demonstrated.
我坚信本文的例子也有助于您使用静态分析工具来查找本文未涉及到代码味道。
Wipe out too many imports code smells by determining a class's efferent coupling using CheckStyle (or JDepend) and providing refactorings such as Move Method
使用CheckStyle(或JDepend)确定一个类的传出耦合度(efferent coupling),并提供诸如Move Method之类的重构,以此来除掉过多的导入代码味道
However, static analysis tools can uncover other smells than the ones I've demonstrated. Table 1 lists examples of other code smells, tools, and possible refactorings.
但是,静态分析工具能够揭露的味道不止我所示范的这些。
当代码“散发出味道”时。
当代码“散发出味道”时。
应用推荐