Geeks With Blogs
Chris Breisch   .NET Data Practices
Search this Blog!

Peter Gunner details an alternative approach to software development if TDD still leaves you cold. He points out that he IS a fan of TDD and often uses TDD and DbC together.

 

From the Introduction:

Design by Contract (DbC) is a software development methodology invented by Bertrand Meyer. DbC has a lot in common with the aims of Test-Driven Development (TDD): writing executable assertions in your source code to specify, before you write the implementation, the design and behaviour of your classes. DbC and TDD both emphasize that quality should be built into your software right from the start. Meyer's Eiffel programming language has DbC capabilities built into it.

C# does not support DbC, but Extensible C# (XC#) retrofits DbC via "declarative assertions". (Design by Contract is a trademark of Eiffel Software. Maybe that's why XC# uses the phrase "declarative assertions".) XC# provides a good, if imperfect, approximation to DbC.

Posted on Wednesday, February 15, 2006 7:45 AM .NET Development | Back to top


Comments on this post: Design by Contract with Extensible C#

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Chris J. Breisch | Powered by: GeeksWithBlogs.net