August 23, 2010

Why arrow code is bad

I, like Jeff Atwood, don't like arrow code.

But is arrow code actually bad, or just unsightly? It's bad. Jeff mentions cyclomatic complexity but doesn't describe it; so see Wikipedia.

In particular,

[Most of the relevant] studies find a strong positive correlation between cyclomatic complexity and defects: modules that have the highest complexity tend to also contain the most defects.

No comments:

Post a Comment