Crappy code

jplindstrom on 2007-11-26T21:14:28

Google Video of Alberto Savoia on Crappy Code.

The basic premise of the CRAP metric is: Complexity bad Tests good

Test coverage is measured eminently with Devel::Cover. But how do we measure complexity of Perl code?

Perl::Critic implements the McCabe cyclomatic complexity thingy.

Does anyone have any actual experience whether that makes sense and is a useful metric? In general? For Perl?

Or what else can we use to indicate the crappiness of Perl code?