Last post Dec 08, 2008 05:13 PM by wot
Nov 21, 2008 04:15 AM|jimmy q|LINK
Of late, I have been seeing a lot of code written that developers created entity classes purely as a data transfer object. The entity class is essentially a dumb class that serves as a data structure. The developer then creates a static class that manages
this entity class, so all the logic and CRUD goes into this static class.
Now, I am not a fan of this as you are creating an unnecessary layer on top and it goes against the founding principles of OOP. I believe this is termed the ananemic model and by some is considered an anti pattern. Regardless, I am not here to start a thread
to debate on the pros and cons, rather I am looking for recommendations on a good Domain Driven Design book that I can suggest as supplementary reading material for my developers.
Can any one point me to a good book that will on DDD?
Nov 21, 2008 04:37 AM|Garbin|LINK
probably the most referenced book on DDD is Domain-Driven Design: Tackling Complexity
in the Heart of Software by Eric Evans.
Another really good one is
Applying Domain-Driven Design and Patterns: With Examples in C# and .NET by Jimmy Nilsson.
My suggestion is to read both of them.
Nov 21, 2008 05:03 AM|jimmy q|LINK
I will buy those books and get my developers to have a read.
I have tried explaining to them the benefits of a rich domain model but they just cant get their heads around it. Maybe I am just awful at explaining it, so hopefully these books will contrast the stark differences and provide another perspective for them.
Nov 25, 2008 05:00 PMfirstname.lastname@example.org|LINK
Tim McCarthy has written a good book on building an application from start to finish using the ideas of Jimmy and Eric:
NET Domain-Driven Design with C#: Problem, Design, Solution (Programmer to Programmer)
by Tim McCarthy
Its a good read and the sample code is a great framework for building applications with a Domain Model. I would read the others first though. Also there is a free book on DDD that summaries Erics book that will get your guys up to speed
Dec 08, 2008 05:13 PM|wot|LINK
You may already know this - by far the best reading is Eric Evans' "Domain-Driven Design - Tackling Complexity in the Heart of Software"
Another very interesting resource is Rob Conery's MVC Storefront - just now being refactored for DDD.