一直以来想系统的研究一下,模型驱动的开发模式,顺便复习一下UML的知识,于是在网上得到了这本书:Use Case Driven Data Modeling with UML : Theory and Practice 。由于这几天有足够的时间,所以打算有计划的研读一下这本书。今天开始,尝试以一种笔记的方式来驱动我的读书过程,顺便记下我的读书心得,希望得到预期的效果。
今天,看它的第一章:Domain Modeling , 理解成汉语的意思就是--域建模。在很多的项目中,项目成员之间沟通的时候,由于使用的描述语言的差异,往往会导致,彼此之间相互误解。这就是域建模的产生背景。
看原文:
The domain model is a live, collaborative artifact. It is refined and updated throughout the project, so that it always reflects the current understanding of the problem space.
这下明白了,域模型是为了对反映当前问题空间的理解,而且,它在整个项目开发过程中是不断被提炼和更新的。
下面这句话再明白不过的了:
In this chapter we’ll look at domain modeling, which aims to solve the problem of miscommunication on projects by establishing a common vocabulary that maps out the
problem space.
域模型就是用来项目中沟通错误这个问题的,它通过建立一个公共的词汇表来反映问题空间。
Domain modeling is the task of building a project glossary, or a dictionary of terms used in
your project.
域建模是用来构建工程词库的任务,构建一个在项目中使用的词典。
The domain model for a project defines the scope and forms the foundation on
which to build your use cases.
一个项目的域模型定义了用来构建用例的范围和形式。
A domain model also provides a common vocabulary to enable
clear communication between members of a project team.
域模型也提供了一个公共词汇表,使得项目成员间能够正确清晰的进行沟通。