Red, Green, Constant Refactor
For any of you following along with our Trivia.NET instructional project, revision 31 should find you with a few changes.
I have begun implementing a new use case, and just writing one test and trying to get it to pass led to two hours of code. You have got to love that!
But the best part, is that I can narrow my development focus on getting the test to pass. And I know that when I decide to finish for the day, the code is left in a stable state, based upon tests. Much better than the classic "Well, it compiled" or the heinous "It works on my machine". It brings development into the realm of science, with repeatable experiments.
At anyrate, stay tuned to this channel for project updates.
Labels: TDD Exercises, Trivia.NET Project


1 Comments:
It's awesome isn't it? Even though you spent 2 hours trying to get the test to pass -- you probably saved yourself a headache in the future by coming up with a better design now that you'll be able to build on. By writing a test first your work is cut out to get that test to pass. After it passes like you said, you know it actually works how the use-case stated.
April 15, 2007 8:52 PM
Post a Comment
Subscribe to Post Comments [Atom]
<< Home