Tuesday, June 7, 2011

DTOs vs Unified Object Models

Great blog post on Info Q discussing differing opinions on the Data Transfer Object pattern and unified object models (used for ORM, business logic, as wire transfer objects, and as Models in Model-View-Controller pattern).

http://www.infoq.com/news/2011/06/DTOs-vs-Objects

In regard to unified models, I have always felt this was forcing to many concerns on a class. In my opinion at least it breaks the single responsibility principle.

No comments:

Post a Comment