RE: Separation of Objects from Logic 2004-12-13 - By Aaron Seet
Martin Fowler calls #1 an "Active Record" and #2 a "Row Data Gateway" + "Data Transfer Object" in his book "Patterns of Enterprise Application Architecture" http://www.amazon.com/exec/obidos/tg/detail/-/0321127420
It is a very decent book bringing murky ideas you had in mind about application patterns into concrete forms. He has written alot that i cannot duplicate, so i recommend you pick up this book.
Aaron Seet DevAdvice Moderation Team SgDotNet.org Council -----Original Message----- From: Phil Winstanley [mailto:phil@(protected)]
1. Where each object is responsible for loading and saving it's data so has both methods and properties. Intelligent objects one might say.
2. Where each object is just a class with properties, light weight, but completely dumb. All logic is performed through a separate Business Logic Layer.
Need SQL Advice? http://sqladvice.com Need RegEx Advice? http://regexadvice.com Need XML Advice? http://xmladvice.com
|
|