From: Robert Date: 2003-01-07T05:02:04+09:00 Subject: Re: Interfaces in Ruby (attempted summary) "Jim Weirich" schrieb im Newsbeitrag news:1041791431.8201.81.camel@traken... > On Sun, 2003-01-05 at 10:17, Robert wrote: > > in order to clarify my understanding of the issue at hand I tried to > > summarize the discussion. Comments are welcome. > > Good Summary ... thanks! > I've found that when doing Test-Driven-Design, the unit test cases > provide much the same information as an explicit interface (and > contract). Perhaps the documentation issue with interfaces can be > addressed in the test case. or even more than this: maybe someone finds a way to integrate these. wouldn't it be nice if the part of the test that verifies the contract could be reused in production code since it is essentially the same? or would that bring in too much interference between test and the "real" code? hm... robert