In a Model View Controller application, you only ever want to see SQL code in the model.
The domain model should be independent of persistence implementation details.
Probably we should accept that models come in different flavors...
Using C means that people [...] don't screw things up with any idiotic "object model" crap.
I'm strongly in favor of persistence agnostic domain models (those are the skinny ones, right? ;-) )
ReplyDeleteThe lesson: don't take design lessons from Rails. :)
ReplyDeleteBut like us and PHP code, they have evolved from that view:
http://blog.steveklabnik.com/2011/09/09/better-ruby-presenters.html