Search the web
Sign In
New User? Sign Up
testdrivendevelopment · Test-driven Development
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Interesting blog article   Message List  
Reply | Forward Message #29108 of 32000 |
Re: [TDD] Interesting blog article

There has always been a role for spike / throwaway code in my opinion.
However, as Jeff says, whilst I wouldn't typically use tests to drive
the spike I have found test-driven techniques extremely valuable in
certain circumstances. An obvious case jumps to mind: where you need
to get to grips with a new API (especially if that API ships without a
test suite).

Regards,
Alan Dean

On Thu, Oct 9, 2008 at 4:42 PM, Jeff Langr <jeff@...> wrote:
> Olof Bjarnason wrote:
>>
http://www.thekua.com/atwork/2008/02/05/if-you-do-test-driven-development-all-th\
e-time-youre-doing-something-wrong/

>>
>> The writer mentions "mindsets" of developers when coding. Initially he
>> discusses Experimentation mode and Focus mode, and concludes that TDD is
>> best suited for the Focus mode, while Experimentation mode is throw-away
>> code for learning technologies (libraries).
> I know of no one who insists on TDD at every turn. That doesn't mean
> such absolutists don't exist. Such an assumption would be as bad as
> assuming there are people who don't work better during exploratory mode
> using TDD.
>
> As insistent as I am on writing tests first, I foray into non-TDD mode
> at times when learning or exploring.
>
> Yet I've also gotten a lot of bang out of writing tests while I'm
> learning, too. "They spend a long time writing their test only to find
> out the thing they're doing won't work in that way and then sulk over
> the time spent writing the test." Bah. I've cost myself hours because I
> was too lazy to write a test. I've bitched a bit about the effort in
> writing tests, but I've never regretted it.
>
> Sometimes writing tests during experimentation is helpful, sometimes
> it's not. If you followed the advice and didn't try, you'd never find
> out when it was more helpful. Same gripe as my gripe on the
> agile-testing list.
>
> Jeff
> http://langrsoft.com/agileJava
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>



Thu Oct 9, 2008 4:10 pm

alan_james_dean
Offline Offline
Send Email Send Email

Forward
Message #29108 of 32000 |
Expand Messages Author Sort by Date

Just wanted to share an interesing blog article + comments I read today: ...
Olof Bjarnason
olof.bjarnason@...
Send Email
Oct 9, 2008
2:16 pm

... I know of no one who insists on TDD at every turn. That doesn't mean such absolutists don't exist. Such an assumption would be as bad as assuming there are...
Jeff Langr
jlangr
Offline Send Email
Oct 9, 2008
3:43 pm

There has always been a role for spike / throwaway code in my opinion. However, as Jeff says, whilst I wouldn't typically use tests to drive the spike I have...
Alan Dean
alan_james_dean
Offline Send Email
Oct 9, 2008
4:10 pm

I agree with the sentiment that while learning a new API/library/technology, "TDD" could be used. For example, checking your assumptions on how things work,...
Olof Bjarnason
olof.bjarnason@...
Send Email
Oct 10, 2008
11:02 am

I know what you mean. Clearly it isn't 'test-driven development' as such when you are exploring an API, which is why I referred to 'test-driven techniques'. ...
Alan Dean
alan_james_dean
Offline Send Email
Oct 10, 2008
11:58 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help