[rspec-users] RSpec makes me want to write better code

Mark Wilden mark at mwilden.com
Fri Sep 26 10:16:41 EDT 2008

On Fri, Sep 26, 2008 at 4:31 AM, Ashley Moran <ashley.moran at patchspace.co.uk
> wrote:

> Is a better rule "each controller action should contain no more than two
> branches"? (But then, I try to apply that to all methods, and even then, I
> try to push conditional code as far down as possible.)

On an OOP mailing list, a guy asserted that there shouldn't be two for-loops
in the same method. It sounded ridiculous to me at the time, but after ten
years of mulling it over, I believe he was right. :)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080926/7a7264eb/attachment.html>

More information about the rspec-users mailing list