News for hackers. Stuff that matters.
Re:Rails is not your application by ajdecon on Saturday October 22, 2011 @08:10PM (#3144680)
I'm not typically a Ruby/Rails programmer, but this seems to me like a different take on good advice I was given a while back: "Whenever possible, build libraries, not apps."

If my code does anything at all which might be decoupled from this particular program or webapp, I try to break it out into a library, which I then call from the app I'm working on. This sometimes results in some extra work when working on that project, but it's saved me plenty of times in the long run.

edit: typo

Re:Rails is not your application by wildster on Saturday October 22, 2011 @09:15PM (#3144825)
It's one thing pull elements into libraries it another thing to put the whole model layer into the lib directory,