Archive for the 'TDD' Category

Eternal Code

Friday, November 10th, 2006

I often hear that code has to be rewritten from time to time. The reason invoked is that code progressively become impossible to understand and incapable of accepting modifications. Multiples successives hacks ?

Legacy Code perfecttly describe that code without test become instantly old. The inverse is true, tested code does not age, it stay maleable. After 3 years of TDD oriented code, I feel that my code is clearer and more maintainable today, than the day it was written.

Test first, test after

Tuesday, October 31st, 2006

TDD feel weird as a beginner. However…

  • If I write tests after, I describe what the code does
  • If I write tests first, I describe what I want the code to do

Which one is reversed now ?