Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
What's the story with these ads on Slashdot? Check out our new blog post to find out. ×
Programming

Submission + - Why Is "Design by Contract" Not More Popul

Coryoth writes: "Design by Contract, writing pre- and post-conditions on functions, seemed like straightforward common sense to me. Such conditions, in the form of executable code, not only provide more exacting API documentation, but also provide a test harness. Having easy to write unit tests that are automatically integrated into the inheritance hierarchy in OO languages "just made sense". However, despite being available (to varying degrees of completeness) for many languages other than Eiffel, including Java, C++, Perl, Python, Ruby, Ada, and even Haskell and Ocaml, the concept has never gained significant traction, particularly in comparison to unit testing frameworks (which DbC complements nicely), and hype like "Extreme Programming". So why did Design by Contract fail to take off?"

Pascal is a language for children wanting to be naughty. -- Dr. Kasi Ananthanarayanan

Working...