News for hackers. Stuff that matters.
Re:On logic in a Rails app by programminggeek on Monday December 24, 2012 @11:00AM (#4963170)
I think part of the problem is that if you start with the naive way, you get some bad habits and start looking at your code through the lens of ActiveRecord - fat models, persistence, concerns, etc.

If your models were just plain ruby objects that validate your data for you, your code is able to do more interesting things - like multiple persistence mechanisms, multiple delivery mechanisms. Oh and they can be incredibly fast to test from day one.

If you use a tool like Obvious (which I wrote), you can TDD from day one and still build things fast, while maintaining a good structure.

There are no comments on this comment yet.