Re: XP and Pair Programming
- From: "Lurker" <nowhere@xxxxxxxxxxx>
- Date: Thu, 8 Sep 2005 22:16:59 +1200
"Robert C. Martin" <unclebob@xxxxxxxxxxxxxxxx> wrote in message
news:20jth1pm27mjdppt9b678mb662k3br35je@xxxxxxxxxx
> An accountable team has one, and only one, definition of the word
> "done". Towit: Passes all acceptance tests.
This is a very dangerous argument. I think I've tried to point
it out before.
Are the inputs of your tests serialisable? If they are,
I can simply write a single case statement that accepts
all possible inputs from your tests (since your write them
first, I know them all of course) and returns hard-coded
results expected by the corresponding tests.
This will pass your test suite. Do you accept that as
a valid soultion? If you do, it makes it so much easier
for the actual programmer. Heck, with a little bit of
effort it should be possible to write a program that
takes in a set of your tests and spews out that single
case statement to match it.
Note that it's also scales well. You, as a test writer
have to come up with a test case and find out what
the correct result is (I wonder how btw?) All I have
to do as implementor is to cut and paste your inputs
and expected outputs into the case statement.
No need for domain knoweledge or anothing fancy
like that - just cut and paste will do it.
.
- Follow-Ups:
- Re: XP and Pair Programming
- From: Ron Jeffries
- Re: XP and Pair Programming
- From: Robert C . Martin
- Re: XP and Pair Programming
- From: Phlip
- Re: XP and Pair Programming
- References:
- Re: XP and Pair Programming
- From: Laurent Bossavit
- Re: XP and Pair Programming
- From: H. S. Lahman
- Re: XP and Pair Programming
- From: Laurent Bossavit
- Re: XP and Pair Programming
- From: H. S. Lahman
- Re: XP and Pair Programming
- From: Laurent Bossavit
- Re: XP and Pair Programming
- From: H. S. Lahman
- Re: XP and Pair Programming
- From: Laurent Bossavit
- Re: XP and Pair Programming
- From: Robert C . Martin
- Re: XP and Pair Programming
- Prev by Date: Re: XP and Pair Programming
- Next by Date: Re: interface Compositions vs class Hierarchies
- Previous by thread: Re: XP and Pair Programming
- Next by thread: Re: XP and Pair Programming
- Index(es):
Relevant Pages
|