Exploring the Subtle Differences Between Agile Paradigms


or keep up with the latest trends tend to adopt particular practices and philosophies from DDD.

The main goal of domain-Driven design is to tackle a complex domain. The premise is based on the thought that most software projects are overly complex and not understandable. This complexity is not due to the technical elements of the project such as networking, databases or platform, but rather the domain itself. The domain is defined as the core business activity of the user. In turn, the main philosophy of DDD is the primary effort for design of a complex project should be on the domain and domain logic, and complex domain designs should be based on a model.

Eric Evan's book enumerates several defined principles and practices, each of which is well thought out and applicable. In essence, that is the beauty of Evan's approach: that subtleties and gray areas of complexity become defined and named through domain-Driven design.

At its core there are a few distinct concepts which exemplify domain-Driven design.

  • ubiquitous language
  • domain model
  • knowledge rich domain
  • layered architecture

Ubiquitous language in its simplest meaning is the attempt to bridge the gap between the language of the business and language of the system. The motive behind the ubiquitous language is that the complexity of a project can become unmanageable when a business term or concept is part of the system but is not reflected with the same language in the objects of the system. This tends to create an understanding gap between the business experts who define the behavior of the system and the developers who implement the behaviors of the system. A project that uses the concept of the ubiquitous language strives to incorporate business names, entities, and terminology into their objects.

A domain model is another fundamental base of domain-Driven design. A complex business domain will result in a complex software project. In order to understand the business domain and translate that knowledge into an object oriented system, objects are necessary. A domain model is an attempt to capture knowledge learned about the business and turn that into objects. Note that the domain model does not have to be an exact depiction of the actual objects used in the system. Many projects maintain a "concept" domain model, which models the known entities, relationships and structure of a system. The main purpose of a domain model is to understand the business domain and build a visual depiction of knowledge so it can be shared amongst team members. It is not a detailed design diagram of the objects of the system but rather a precisely modeled understanding of the business in the form of objects. The domain model is a living diagram and is updated and maintained as understanding evolves.

A knowledge rich domain essentially means that domain objects in the system contain related behavior. Many projects follow the anemic domain pattern in which their domain objects contain data with getters and setter methods but do not contain any behavior methods. The behaviors are implemented with "managers" or "controllers." DDD advocates that behaviors related to an object should be contained in that object. Several added benefits are gained from a knowledge rich domain. Behavior logic is contained in one object, often reducing duplicated code resulting in a gain in reuse. Objects are more encapsulated and follow the "tell don't ask" principle. Systems with knowledge rich domains are often more understandable and intuitive as an object manages its own data and its related behaviors can be found with that object, resulting in better maintenance.

Layered Architecture is a technique in designing software

About the author

Nirav Assar's picture Nirav Assar

I am a software consultant in the DFW area. I specialize in web application development for enterprises, along with agile consulting practices. Grails, Groovy, Java, Spring and Hibernate are my specialty areas in technology. In the Agile spectrum I have run teams with XP, Scrum, and UP methodologies. I am interested in providing high value to business groups, with the most effective and latest technologies available.

AgileConnection is one of the growing communities of the TechWell network.

Featuring fresh, insightful stories, TechWell.com is the place to go for what is happening in software development and delivery.  Join the conversation now!