The term that I see from time to time is "Cyclomatic Complexity". Here on SO, I saw some questions about “how to calculate the CC of a language X” or “How to make Y with a minimal amount of CC,” but I'm not sure I really understand what it is.
On the NDepend Website, I saw an explanation that basically says: “The number of solutions in the method. Everyone, if, for, &&, etc. adds +1 to CC“ score ”). Is this true? If so, why is it bad? I see that you might want to keep the number of if statements fairly low in order to simplify the code to understand, but is it really for this?
Or is there a deeper concept?
language-agnostic architecture cyclomatic-complexity
Michael Stum May 26 '09 at 16:43 2009-05-26 16:43
source share