I played with measuring the cyclic complexity of a large code base.
Cyclomatic complexity is the number of linearly independent paths through the program source code, and there are many free tools for your choice of language.
The results are interesting, but not surprising. That is, the parts that, as I know, were the most hairy, were actually the most difficult (with a rating> 50). But what I find useful is that a specific “badness” number is assigned to each method as something I can indicate when it decides where to start refactoring.
Do you use cyclomatic complexity? What is the most difficult bit of code you found?
metrics refactoring code-metrics cyclomatic-complexity
Paul Robinson Apr 14 '09 at 0:02 2009-04-14 00:02
source share