On Fri, Sep 26, 2008 at 4:31 AM, Ashley Moran <[EMAIL PROTECTED]
> 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. :)

///ark
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to