Friday, April 27, 2012

Command Pattern vs. Anemic Domain Model

One of the risks of the Command Pattern is you end up with an anemic Domain model, with all the logic pushed out to the commands. By relying on generic commands and reflection, you keep the logic in the domain model, and you don't end up writing that many commands.
Robert Watkins - http://www.corvine.org/blog/archives/2005/09/why_i_love_test.html

No comments:

Post a Comment