Thursday, May 10, 2007

Believing in TDD

Recently I have been bouncing between TDD and CDD (code driven development...aka...the old way of doing things) only because old habits die hard. I have to say that having tests are golden.

If you are not sold on the idea of TDD just think of this...If you are looking for a bug by running your enterprise app repeatedly you are wasting your time! You are a sucker of CDD. Imagine all of the crap you have to go through, especially in visual studio, all of the waiting you have to go through just to get to the point of hitting some far flung form in your app, weeding through the bs of your app just to hit your breakpoint. Don't be a slave to your app.

Having code that is driven out by solid tests you have a place to goto when things go wrong. Just debug your tests. If you do this you can step into your app far more easily, without the hassles of running your exe.

If we are mocking out our views and everything is behaviour driven should we even bother to run the app? Leave that to the user.

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home