Finally – a solid metric for code quality.

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

I love it. All you need is a counter and a stop-watch. Start code-review and start watch and start clicking anytime you see code that makes you say or think “What the F???”. This dovetails nicely with his original recommendation for a new statement in the agile manifesto: “Craftsmanship over Crap”.

This entry was posted in Theory of Agile and tagged , , by Christian Gruber. Bookmark the permalink.

About Christian Gruber

An agile coach, management consultant, software architect, and developer, Christian teaches and consults on issues of software development process and practice, both deep in and high above the coding level. A former Sun contractor and Deloitte consultant, his background has given him a focus on service and value that works quite well with his lean and agile philosophies. He maintains his own blog at http://www.israfil.net/blog/geekinasuit/ and works with Berteig Consulting as an affilliate consultant through his own consulting firm, Israfil Consulting Services Corporation.

One thought on “Finally – a solid metric for code quality.

  1. This reminds me of the “Scheiße metric” that I invented with our German linguists when we developed proofing tools for Microsoft in the 1990s… I think I used it to measure the morale of the team, though.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>