Articles tagged with  metrics

Get Rid of That Code Smell - Attributes

April 04, 2012 by Piotr Solnica

In this post I will show you why using attribute accessors is a code smell in most of the cases. This is a very convenient feature of Ruby but you should only consider using it if you’re implementing a data-like objects which expose, well, data to...

Get Rid of That Code Smell

March 30, 2012 by Piotr Solnica

While working on DataMapper 2 libraries we are measuring quality of our code with various code metric tools. Dan Kubb has been using this approach successfully for over 2 years in Veritas which resulted in a beautiful and clean code. When I started...