[rspec-users] Mocks? Really?

Francis Hwang sera at fhwang.net
Sun Dec 30 22:09:31 EST 2007

On Dec 30, 2007, at 9:38 PM, Jay Levitt wrote:

>>> Incidentally, how well-tested was that code base? 200 lines of copy-
>> and-paste smells like untested code to me.
> 15-20 years ago, unit tests were not a widespread industry practice :)
>   This code's in a procedural language that really, really doesn't do
> unit tests well.  I've been trying, too.  Almost wrote a pre- 
> processor,
> till I thought about the maintenance nightmare that'd cause.

Right, that's why I ask. I think working with languages, tools, and  
frameworks that are easier to test is a great advantage to how we all  
worked 10 or more years ago ... I suspect part of that luxury  
translates in being able to actually design _less_, since the cost of  
fixing our design mistakes in the future goes down significantly.

Francis Hwang

More information about the rspec-users mailing list