Garren Smith

Short Note from Code Retreat

10 Feb 2012 - Johannesburg

Last Saturday I did a CodeRetreat with Corey Haines at RubyFuza. It was a great and humbling experience. It showed how important it is to continually practise your coding skills. Corey had four important points for better design that I haphazardly wrote down on a scrap of paper. I feel they deserve more respect than that.

Essentially, in order to design better software, we need to write it so that it is easier to change. These points, listed in order of importance, help to achieve that.

  1. Passing tests
  2. Your code should reveal intent
  3. There should be no code duplication
  4. Write short methods that do one thing.

Read these two great explanations by JBrains and Corey Haines to follow the path to enlightenment.

I plan to spend the next couple of weeks trying to achieve this when writing code. Do you think these points are in the correct order? Any points that should be added?

blog comments powered by Disqus
Fork me on GitHub