Browse by Tags

All Tags » OOD (RSS)

A Upcoming Pandemic of Domain Anaemia

There's a well-known anti-pattern called the anaemic domain model[1][2]. This anti-pattern basically says domain entities, chronically, have little or no behaviour (remember, object-oriented design is about attributes and behaviour). It should be...

Pontificating Virtual Parameterized Constructors in C#

Tom Hollander recently posted about a change he required to the Enterprise Library for date/time validation. He had to create a new class (rather than modify the Enterprise Library) that derived from another, defective class. One of his complaints was...

Excellent Overview of Domain-Driven Design and Why it Helps

Deep-fried Bytes has a podcast with David Laribee where they chat about Domain-Driven Design (DDD), some of it's fundamental principles and patterns. It's part one of two; but, It's an excellent overview of DDD and why it helps.
Posted by PeterRitchie | with no comments

Fundamentals of OOD Part 3: Method Cohesion

Single Responsibility Principle (SRP) helps us write more cohesive types and methods. Cohesion is the relatedness of the members of a type to each other and the relatedness parts of a method's code to other parts. Method cohesion Often times a method...