62

Keep your controllers slim by moving all the logic into ONE HUGE HELPER CLASS

Comments
  • 1
    Ok this one actually made me lol. Have an upvote!
  • 1
    Ooh I've seen that practice in action..
    In some rails project, there was a helpers folder nested in controllers, a {controller}_helper.rb for each controller..

    Much trait-itis in PHP.. Unless you have an ide that indexes the methods, well.. Bite me, time to grep or awk for it.
  • 1
    In spring all your hard core logic is in the service layer.
  • 1
    I'm actually guilty of having done this at one stage of my career :(
Add Comment