--- In [EMAIL PROTECTED], Brad Appleton <[EMAIL PROTECTED]>
wrote:
> On Wed, Oct 27, 2004 at 01:22:35PM -0400, Ron Jeffries wrote:
> > On Wednesday, October 27, 2004, at 12:30:55 PM, Michael Feathers
wrote:
> > > Russell Gold wrote:
> >
> > >>So should we really be speaking of Assertion-Driven Development
rather
> > >>than Test-Driven Development? It would certainly eliminate the
need to
> > >>warn that it is not about testing.
> >
> > > Very interesting idea. "Assertion" is linked to testing, but
doesn't
> > > have the connotations that "test" or something like "specification
> > > driven development" would.
> >
> > Yes, that is an interesting idea. Let's try it on for a while.
>
> Could someone help me out by clarifying for me what the
> difference would be between Assertion-Driven Development
> (ADD) and Design-by-Contract (DBC)? (and how, if at all,
> do you feel DBC is different from TDD)
There are at least three significant ways in which DBC
differs from TDD, one of which has already been mentioned:
the location of the assertions in the code rather than in
a separate compilable.
The second is that DBC assertions are run every time the
method in which they are embedded is run, and they are
run with whatever data happens to be passed to them at
the time; TDD tests run specific methods with specific
data. You still need some form of explicit test driver
for DBC.
The third is that DBC has a model of what is to be
asserted: preconditions, postconditions and invariants.
TDD has no such model: it is consequently more general.
John Roth
>
> --
> Brad Appleton <[EMAIL PROTECTED]> www.bradapp.net
> Software CM Patterns (www.scmpatterns.com)
> Effective Teamwork, Practical Integration
> "And miles to go before I sleep." -- Robert Frost
To Post a message, send it to: [EMAIL PROTECTED]
To Unsubscribe, send a blank message to: [EMAIL PROTECTED]
ad-free courtesy of objectmentor.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/extremeprogramming/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/