Crimson Reason

A site devoted mostly to everything related to Information Technology under the sun - among other things.

Friday, March 21, 2008

More on Cyclomatic Complexity

In a column titled "Debunking Cyclomatic Complexity" by Andrew Binstock, in the Software Development Times, we read the following:

"... cyclometric complexity does not correlate directly to defect probability.

... routines with CCNs of 1 through 25 did not follow the expected result that greater CCN correlates to greater probability of defects. Rather, it found that for CCNs of 1 through 11, the higher the CCN the lower the bug probability.

... The majority of routines written in object-oriented languages today ... have CCNs in this range. This means that for most code you write, CCN does not tell you anything useful about the likelihood of your code’s quality. (Above 25, CCN does correlate to greater bug probability.)"

No comments:

Post a Comment

‹
›
Home
View web version

About Me

My photo
Babak Makkinejad
I had been a senior software developer working for HP and GM. I am interested in intelligent and scientific computing. I am passionate about computers as enablers for human imagination. The contents of this site are not in any way, shape, or form endorsed, approved, or otherwise authorized by HP, its subsidiaries, or its officers and shareholders.
View my complete profile
Powered by Blogger.