Importance of Domain Modeling
Data-centric applicationsProgramDevelopment: the Core of process-oriented analysis is database design.
Now, when we use object-oriented analysis (OOA, OOD), Domain Modeling replaces the above method. At the same time of modeling, it has a good combing effect on the demand. You can also find uncaptured requirements and wrong requirements in the Requirement Description. (Requirement and Domain Modeling are two processes of mutual promotion .)
How to Model
1. modeling should be performed in the form of drawing.
In the model diagram, the relationship between models is clarified: inheritance and Association (1-to-1-to-many, many-to-many) (meaning and direction of association ). Therefore, you can use static modeling (mainly class graphs), and a few use dynamic graphs.
The main product of this step is the model diagram.
2. accurately define each model.
When defining, you can use the interface + comment form (the interface with clear definitions can beCompositionFiles .). These interfaces can be used as the basis for designing service interfaces in the design phase, and play a role in the later stage of the project.
The main product of this step is interfaces.
Other advantages:
UseCodeAfter the interface modeling, it is also conducive to team development: After the use case interface is compiled, this interface belongs to the business logic layer, and the presentation layer development team on it can develop the presentation layer according to the use case description. The implementation of the logic layer and the data layer can also be developed by people.