Ayende @ Rahien

Hi!
My name is Ayende Rahien
Founder of Hibernating Rhinos LTD and RavenDB.
You can reach me by phone or email:

ayende@ayende.com

@

Posts: 5,949 | Comments: 44,545

filter by tags archive

Meaningless code quality, part 2


Here is the next slide in my presentation.

image

Code quality is a hard metric, it can be backed up by numbers, if you need to. Fairly often, it is measured by gut feeling and "this is a mess".

One interesting problem with code quality is that you generally don't have a good way to measure the maintainability of a particular solution, regardless of its current code quality.


Comments

Konstantin Spirin

A good code quality metric exists - it's WTFs/minute.

Easily googlable.

For example,

http://imod.co.za/2008/02/07/wtf-measure-of-good-quality-code/

Peter Ritchie

Metrics about coupling and dependencies are a good indication of maintainability. But, they're not foolproof.

One thing I've learned over the years is to never underestimate people's ability to write lousy code to make metrics look good.

Gian Maria

Metrics should not be known by developers, if you do not known the metric you cannot write code only for the sake of having good metrics. But in the end metrics themselves are not so useful.

Code quality can means different things, I think that we should speak of Code quality in a team, meaning that the code have good quality if everyone in the team can look at it, and understand how it works and most important, he can modify it with good confidence.

Clearly that are some factor like number of bug found that can be also a good starting point to measure quality of a particular piece of code.

alk.

Comment preview

Comments have been closed on this topic.

FUTURE POSTS

  1. The RavenDB Comic Strip: Part III – High availability & sleeping soundly - 17 hours from now

There are posts all the way to May 28, 2015

RECENT SERIES

  1. The RavenDB Comic Strip (3):
    20 May 2015 - Part II – a team in trouble!
  2. Special Offer (2):
    27 May 2015 - 29% discount for all our products
  3. RavenDB Sharding (3):
    22 May 2015 - Adding a new shard to an existing cluster, splitting the shard
  4. Challenge (45):
    28 Apr 2015 - What is the meaning of this change?
  5. Interview question (2):
    30 Mar 2015 - fix the index
View all series

RECENT COMMENTS

Syndication

Main feed Feed Stats
Comments feed   Comments Feed Stats