-
Recent Posts
Recent Comments
- John Teague on Polymorphism Part 2: Refactoring to Polymorphic Behavior
- Artëm Smirnov on Polymorphism Part 2: Refactoring to Polymorphic Behavior
- The Morning Brew - Chris Alcock » The Morning Brew #1344 on Pablo’s Fiesta is Back!!
- MBR on Polymorphism Part 2: Refactoring to Polymorphic Behavior
- Mario Pareja on Polymorphism: Part 1
Archives
- April 2013
- March 2013
- February 2013
- December 2012
- November 2012
- May 2012
- April 2012
- February 2012
- September 2011
- August 2011
- June 2011
- April 2011
- March 2011
- November 2010
- June 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- February 2009
- January 2009
- November 2008
- October 2008
- September 2008
- August 2008
- June 2008
- May 2008
Categories
- ActiveRecord
- adnug
- april-fools
- automated-builds, ADNUG
- c#
- Castle
- codecamp
- Command Processor Pattern
- CSS
- DDD
- design patterns
- fiesta open-spaces
- IOC
- iron ruby
- JavaScript
- jQuery
- Law of Demeter
- linq
- los-techies-fiesta
- MonoTouch
- MVC
- NHibernate
- NHibernate DDD
- nodejs
- PTOM
- Repository Pattern
- resharper
- Software Design
- SOLID
- TDD
- Testing
- Uncategorized
Meta
Category Archives: DDD
Using Syntax to Model the Domain
I’m fascinated by the small syntactic decisions that bring code closer to representing the business domain. Never mind the class inheritance examples from text books (“Dog IS-A Pet,” which has nearly never been relevant), I mean using properties, methods, and … Continue reading
Also posted in fiesta open-spaces
Leave a comment
Using a Command Execution Style Architecture with a Domain Model
Kyle Baley has an interesting article about how he’s using commands to break up the logic of his application into small manageable pieces. I’m using the same command processor pattern for a project I’ve working on as well. It’s a … Continue reading
Also posted in Command Processor Pattern
16 Comments
Implementing Domain Queries
My current Repository interface looks something like this: public interface IRepository { T FindOne<T>(int id); T FindBy<T>(Expression<Func<T, bool>> expression); IEnumerable<T> FindAllBy<T>(Expression<Func<T, bool>> expression); IEnumerable<T> FindAll<T>(); T FindOneBy<T>(Expression<Func<T, bool>> expression); void Save<T>(T target); void Update<T>(T target); void SaveOrUpdate<T>(T target); void Delete<T>(T … Continue reading
Also posted in linq, NHibernate
11 Comments
Well-constructed != Over-architected
Let’s imagine for a moment that we’re building a dog house for our beloved family pet. We want it to protect Rover from the elements, be a comfortable place for him to escape the sun and relax, and in general, … Continue reading
Inconvenient Accessibility Makes Self-Documenting Code
Intentional use of access modifiers (public, private, etc.) is like a clear memo to your team. This came up during Steve Bohlen‘s Virtual Alt.Net talk on domain-driven design. Steve explained the distinction between Entity objects, which have a unique identity … Continue reading
Also posted in ActiveRecord, Repository Pattern
Leave a comment
P&P Guidance – Positive Progress
I put up a post a while back about the P&P REST guidance which I considered to be quite flawed. The reaction from the P&P team was superb and Greg Young, Sebastien Lambla and myself immediately got involved in an … Continue reading
Also posted in Uncategorized
Leave a comment
DDD – Making meaningful relationships
A recent discussion on the DDD forum made me want to post about what I consider to be an under-appreciated aspect of domain modelling, namely relationships. In the thread Randy Stafford said the following: Note that RoleRegistration is an example … Continue reading
Also posted in ActiveRecord, NHibernate, Repository Pattern
Leave a comment
Organizing Namespaces with DDD
About a week ago I posted a message to the Yahoo DDD group to see how other people were organizing their namespaces in their Domain Model. For the most part everyone had the same basic idea. You can read the … Continue reading
Also posted in Uncategorized
3 Comments
