In pursuit of code quality, Tame the chatterbox
Tools and metrics for measuring code verbosity
From the developerWorks archives
Date archived: May 16, 2019 | First published: June 30, 2006
Just seeing a sprawling code block from a distance gives some developers the willies -- and it should! Loquacious code is often the hallmark of complexity, which results in code that is hard to test and maintain. This month, learn three important ways to measure code complexity, based on method length, class length, and intra-class coupling. In this installment of In pursuit of code quality, quality expert Andrew Glover starts out with tips for eyeballing code excess, then shows you how to use tools like PMD and JavaNCSS for more precision when you need it.
This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.