Refactoring with code metrics

Unless one effectively makes use of code metrics, they are, arguably, useless data points. Luckily, it’s rather easy to employ these objective measurements of code quality when it comes to refactoring. Cyclomatic complexity, for instance, is excellent at spotting complex code, which can then be refactored using the Extract Method technique.

Check out the fifth article in IBM developerWorks’ “In pursuit of code quality” series: “Refactoring with code metrics” and if you have any thoughts, questions or comments, see the “Improve Your Java Code Quality” forum!

Related odds and ends
 

Trackback this Post | Feed on comments to this Post

Leave a Reply