Archive

Archive for February, 2010

Clean Code Developer

February 8th, 2010 bfluri No comments

ccd_bannerIt took me quite some time to replace the Clean Code Developer bracelet; it took me way more time than the usual three weeks because 1) the principles are fundamental and 2) I didn’t have much opportunity to use them all. But, now, I think it’s definitely time to switch from the yellow to the green bracelet. The principles and practices of the green bracelet are:

  1. Open closed principle: open for extension, closed for change (Object-Oriented Software Construction by Bertrand Meyer)
  2. Tell don’t ask
  3. Law of Demeter: Personally, I don’t think this principle can be used steadily nowadays. If you work with frameworks, you seldom have a chance to follow this principle striclty.
  4. Continuous Integration: I recommend the article of Martin Fowler for a very good introduction and the Podcast fom se-radio.net For our project, we use Hudson as the continuous integration server.
  5. Static code analysis
  6. Inversion of Control Container
  7. Pass knowledge
  8. Measure bugs