concept subdomain in category software development

appears as: subdomains, subdomain, subdomains, subdomain
Writing Great Specifications: Using Specification by Example and Gherkin

This is an excerpt from Manning's book Writing Great Specifications: Using Specification by Example and Gherkin.

Figure 10.4. A specification suite organized by the subdomains present in the suite. Each subdomain features a list of actors relevant to this subdomain. Every actor can have various capabilities in each of the subdomains.

As you can see, the abilities—or functional requirements—in the system are organized by their corresponding subdomains. (I added a new generic subdomain for access control to make the specification suite a little more complex.) Now, even if a single actor has multiple capabilities, you can split all of them among various subdomains. You can also see which actors are present in which subdomains, which will help you understand which subdomains are important to which stakeholders. In addition, you can make an inverse deduction: you’re able to see which stakeholders can be instrumental in developing the subdomains. Also notice that you haven’t done anything with business needs; they’re nonfunctional requirements, and nonfunctionals are general qualities like speed or usability—they belong to the entire system instead of specific subdomains.

Such a specification suite can become a visual representation of the domain model specified by this suite. You can see a clear hierarchy of subdomains, actors, and requirements. Moreover, a representation like this can evolve naturally over time, because the requirements are tied to the domain logic code by the automated tests. If you change the requirements or change the domain logic, you’ll probably need to add, delete, or move the feature files related to the changed requirements—and your visualization of the model will change alongside the model.

To understand the concept of subdomains more easily, look at your own life. We all have something important at the center of our lives. For some people, it’s family. For other people, it’s a passionate interest. This is a core domain. Although you know that it matters to you above all else, you know that a full human life has other, less important aspects, too, which support your well-being. Work is a good example. Other aspects are more mundane—like going shopping and paying taxes. They’re the remaining sub-domains of your life.