News for hackers. Stuff that matters.
Re:Ways to Decompose Fat ActiveRecord Models by tmorton on Wednesday October 17, 2012 @11:05AM (#4664739)
I don't have any research, just a rule of thumb: refactor when it hurts. In my experience, it's easy to go too far in the other direction, trying to craft perfectly generic code on the first pass. That doesn't work very well.

It's important to have a meta-awareness while programming - how firm is your grasp on the code? How confident are you that your changes will do what you expect? At some point, you feel that grasp slipping, and then it's time to refactor.

Re:Ways to Decompose Fat ActiveRecord Models by brynary on Wednesday October 17, 2012 @11:08AM (#4664755)
That's a great summary. It's easy to lose that meta-awareness, even if you're an experienced coder. You are holding a hammer, and the nail isn't going in, so your first instinct it "hammer harder". But usually it means you need a screwdriver.
Re:Ways to Decompose Fat ActiveRecord Models by ljoshua on Wednesday October 17, 2012 @01:19PM (#4665483)
I agree, great summary, thanks for the insight.