3

Just read this blog post - Help! I’m Terrible At Migrating/Restructuring Code In A Test-First Manner. I've had similar experiences, and thought I'd try an open it up to the wider community ...

Bermo
  • 4,921
  • 1
  • 28
  • 31
  • While the charitable attitude is nice, this isn't really a question. – Amber Apr 16 '10 at 11:27
  • 2
    You say community there. This calls for CV. You should mark you post community wiki. – Björn Pollex Apr 16 '10 at 11:27
  • 1
    There are no tricks...No free lunch. You'll have to pay your technical debt - one cent at a time as you go along. Get your tips in the WELC book by Michael feathers, bite your lip and soldier on. Get back if you have some specific questions. – Gishu Apr 19 '10 at 05:34
  • @Gishu - Thought as much - I have the Feathers book already and half way though it. thanks for your comment - would have accepted as answer so +1 – Bermo Apr 20 '10 at 05:39

1 Answers1

0

I am using TFD – Test First development in a data migration project. I realize until you understand well the philosophy of TFD and the testing tool the development tend to be slow. But when you need to change your develop code you see the big benefits of TFD. I think in TFD are tow rules that you always must not to break:

  • Treat your testing code as first citizen. Clean code and always refactoring your testing code
  • Never write code until you have a breaking test and implement the simplest code to pass your test.

If you always respect hose rules then is all about practice TFD.

For me I think I never again code without having a fail test.

miguelbgouveia
  • 2,963
  • 6
  • 29
  • 48