On 3/1/2009 4:18 PM, Darren New wrote:
> Is Test-driven design really any better or worse than programming by
> contract? What are the benefits of it? It seems TDD is just "separate
> your code into functional-and-thus-testable pieces and mock up the parts
> you can't specify", which would seem perfect for programming by contract.
>
I wasn't aware that the two were mutually exclusive.
Programming by contract creates the specification for your code.
TDD ensures that your code meets that specification.
Or am I missing something?
--
...Chambers
www.pacificwebguy.com
Post a reply to this message
|