News for hackers. Stuff that matters.
Re:Steve Klabnik's response to critiques of his Ruby OOP post by jasonlotito on Friday September 09, 2011 @05:01PM (#2979835)
> It's led me to ask the question "If Rails isn't good enough, then why are you using it?"

That's a pretty poor question. Rails is a framework, and for the most part it works. However, that doesn't mean it's the one and true way of doing things.

Granted, I generally agree with the article. Helpers are a step backwards.

Re:Steve Klabnik's response to critiques of his Ruby OOP post by tptacek on Friday September 09, 2011 @05:48PM (#2979998)
Why?

The sole purpose of a helper is to keep code out of templates and presentation out of controllers.

How could they do a better job of that than they do now?

Remember, the article you're agreeing with says that helpers are bad because they are "just functions". This is, in a word, crazy. It's one thing to design with objects; it's another thing to turn all your functions into classes so you can pretend you're OO.

Re:Steve Klabnik's response to critiques of his Ruby OOP post by fjfish on Monday September 12, 2011 @11:28AM (#2987613)
So put the code in the model, where it belongs ... I rarely use helpers for anything but formatting-fu - everything else is in the model. I rarely use helpers, period.