At 9:52 PM -0500 12/29/03, Andrew M. Langmead wrote:
On Dec 29, 2003, at 8:36 PM, Jeff Lowrey wrote:

At 4:01 PM -0600 12/29/03, Andy Lester wrote:
 So if it matters in the future, go right ahead and refactor it.  The
 change is minor.  Barring that, write the code that is most clear.

The first two versions are always throw aways.

Is that because of the "Three Strikes and You Refactor" rule? <http://c2.com/cgi/wiki?ThreeStrikesAndYouRefactor>

Not exactly, no.


But both reflect the fact that by the time you're doing something for the third time, your requirements have changed sufficiently (and usually in subtle ways) that you're better off starting over.

Even if you're not in an XP development cycle.

-Jeff Lowrey



Reply via email to