> -----Original Message-----
> From: s. isaac dealey [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, 2 September 2008 3:06 AM
> To: CF-Talk
> Subject: TDD vs. Big Ball of Mud (was Re: fusebox vs model glue)
> 
<snip>

> And so it's an assumed that the TDD advocates who talk about writing all
> your tests before writing your code will be overconfident about their
> design. 
<snip>

Whoa, hold it right there.  Show me the TDD advocate who promotes writing
all tests before writing code and I'll personally have their card revoked!
TDD means write a test, then write some code, then write another test....by
the time you write your last test, you've written all your code bar that
last function.  You will actually rewrite less of your stuff than otherwise,
because writing tests first really brings a poorly factored design into the
spotlight much earlier than would otherwise happen.

The assertion is that if you can't write a test you don't *have* a design,
or indeed a clear intention.  And if your tests are hard to write, it's
because you have a bad design.  So given all of this, it's hard to argue
that the right thing to do in this situation is to go ahead and write some
code anyway.  "Thinking out loud" in code is fine, but thinking out loud
into a test case is even better.

@Adam:
Agreed that "behaviour" is a better word.  I also like the last "D" to stand
for "design".  "Test driven design" takes away some of the quality-control
mindset that's introduced by the word "test".

Jaime



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311887
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to