Oct 9, 2009

The Correct Refactor Flow

  1. Get assigned a task to implement a new feature.
  2. Refactor the code until that feature is as easy to add as possible.
  3. Add the feature.
  4. Submit.
Read this enlightening piece here.

update: I found this is indeed originated from Martin Fowler's amazing book "Refactoring", which is filled with ideas originated from practices of smalltalk. It's a shame I didn't read that book earlier :-( "Refactoring" (or "Refactoring: Ruby Edition") is a must read.

No comments:

Post a Comment