From: Jens Auer Date: 2006-02-16T23:33:27+09:00 Subject: Re: OT: Is this worth a try? John Carter wrote: > On Thu, 16 Feb 2006, David Vallner wrote: > >> b) The prime example of a bondage and discipline language. Which you >> might or >> might not like, but If you do, you're probably better off with C++ for >> overall usefulness. > > > Note that B&D is all bad, but you certainly can mimic many of the B&D > features of Eifel in Ruby. > > In fact I personally recommend doing both Test Driven Development to > drive the code through it's paces, but putting the assert's as > preconditions, postconditions and invariants within the code in the > Eifel style. > > You find run time bugs much faster that way. Design by contract is a little bit more than placing asserts at the beginning and end of a method. I would be realy glad if someone points me to some library wich implements DbC completely in Ruby, eg the fact that a method can only widen the supermethod's contracts which is automatically checked.