Re:Applying the Unix Philosophy to Object-Oriented Design
by jdminhbg on Wednesday November 28, 2012 @10:59AM
(#4843146)
> Rails practically begs you to disregard SRP in your models.
That's because the Active Record pattern is explicitly double responsibility: http://martinfowler.com/eaaCatalog/activeRecord.html That's why it's called "active record" -- there's domain logic and persistence in one object.
That's because the Active Record pattern is explicitly double responsibility: http://martinfowler.com/eaaCatalog/activeRecord.html That's why it's called "active record" -- there's domain logic and persistence in one object.