Exploring domains
DDD is a collection of software design philosophies and best practices. There are a handful of books dedicated to DDD, and most of them are above 500 pages. So, we can talk a lot about DDD, but this book isn’t about DDD, so we will be brief.
DDD focuses on business logic and the interaction with the DB and the outside world and employs a set of practices for a robust software design. The word domain in DDD refers to a business domain, which can be car insurance, accounting, billing, banking, e-commerce, and others. DDD emphasizes the business domain, as per the term domain-driven.
Next, we will explore the architectural components that make the practical aspect of DDD.
Domain objects
A domain object is a representation of a real-life business entity. Exploring our blog project, the domain objects can be like this:
Figure 7.4 – The classes and structs contributing to a blog domain
You can see how the names of these...