Herkum has asked for the wisdom of the Perl Monks concerning the following question:

I had been reading about code complexity and Perl::Critic uses Perl::Critic::Utils::McCabe as its foundation for determining code complexity. There was a link on the POD that went to here for a discussion on the subject and that is when I cam across Essential Complexity as another method.

I had looked through CPAN and had not found any modules that had done this type of evaluation and I was wondering if anyone had looked into the area.

Update: This is a better link for explaining Essential Complexity.

  • Comment on Code Evaluation using Essential Complexity

Replies are listed 'Best First'.
Re: Code Evaluation using Essential Complexity
by MidLifeXis (Monsignor) on May 28, 2008 at 18:19 UTC

    Very interesting paper(s). Are there any things on CPAN that help generating the code path graphics as in the NIST paper? This sounds like an interesting project, unless it already exists :)

    --MidLifeXis

      Between PPI and Graphviz you can generate a graphic which would probably show some of the branching of the code. However, I have not really looked into it much as of this point. The whole point of this was to see if anyone else has explored this idea or not. Based upon the number of responses, my guess appears to be, not many...