POV-Ray : Newsgroups : povray.off-topic : TDD vs PbC : Re: TDD vs PbC Server Time
6 Sep 2024 03:14:01 EDT (-0400)
  Re: TDD vs PbC  
From: Chambers
Date: 1 Mar 2009 19:38:52
Message: <49ab2a9c@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.