Wednesday, November 23, 2011

Model, model thou art my riddle!

Can you spot the difference:
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...

... or maybe the grand master was right:
Using C means that people [...] don't screw things up with any idiotic "object model" crap.

2 comments:

  1. I'm strongly in favor of persistence agnostic domain models (those are the skinny ones, right? ;-) )

    ReplyDelete
  2. The lesson: don't take design lessons from Rails. :)
    But like us and PHP code, they have evolved from that view:
    http://blog.steveklabnik.com/2011/09/09/better-ruby-presenters.html

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...