A Code Quality Metric
I came across this via the Agile Advice blog:
Bob C. Martin (Uncle Bob to you and me) suggested, in his “quintessence” keynote at the Agile2008 conference that he had the perfect metric for code quality. Cyclomatic complexity and others were interesting mostly to those who invented them, etc. His answer was brilliant, and was easily measured during code reviews:
WTFs per minute
It seems like a joke, but you know, it's too true. The worst, or perhaps best, code and design reviews I've participated in have involved a lot of "WTF?!?". You know you found a problem with quality when that happens.
Perhaps someone can start a WTF trend analysis to see if there's a direct correlation between quality and WTF count. I bet there is.
Filed under: Development