知识卡片
领域愿景写模型取舍而非界面细节
原书给出两组示例文本,说明领域愿景的取舍:
| 示例 | 应进入愿景的模型焦点 | 仍重要但不写进愿景的内容 |
|---|---|---|
| 航空订票 | 乘客优先级、航司订票策略及长期客户关系如何用模型平衡 | UI、Web/XML接入、动画标志缓存、确认响应时限 |
| 半导体工厂 | 物料与设备状态如何支持审计、自动路由及管理判断 | Servlet、Web服务器部署、技术选型 |
判断标准是:这句话是否描述领域模型要表达的核心概念及价值。应用推断:技术要求应另行管理。原书只将这些要求列为重要但不属于领域愿景,并未报告示例已实际实施。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第15章|Domain Vision Statement · 查看原书依据
The model can represent passenger priorities and airline booking strategies and balance these based on flexible policies. The model of a passenger should reflect the "relationship" the airline is striving to develop with repeat customers. Therefore, it should represent the history of the passenger in useful condensed form, participation in special programs, affiliation with strategic corporate clients, and so on.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第120章《Domain Vision Statement》(源文件:_epub-src/0321125215_ch15lev1sec4.html;单元01)
- 结论依据:原书两栏示例把订票和工厂的核心模型意图列入领域愿景,而把界面、性能、技术与部署事项列为重要但不属愿景。
- 原始内容(航空愿景):The model can represent passenger priorities and airline booking strategies and balance these based on flexible policies. The model of a passenger should reflect the "relationship" the airline is striving to develop with repeat customers. Therefore, it should represent the history of the passenger in useful condensed form, participation in special programs, affiliation with strategic corporate clients, and so on.
- 原始内容(航空非愿景):The UI should be streamlined for expert users but accessible to first-time users. Access will be offered over the Web, by data transfer to other systems, and maybe through other UIs, so interface will be designed around XML with transformation layers to serve Web pages or translate to other systems. A colorful animated version of the logo needs to be cached on the client machine so that it can come up quickly on future visits. When customer submits a reservation, make visual confirmation within 5 seconds.
- 原始内容(工厂愿景):The domain model will represent the status of materials and equipment within a wafer fab in such a way that necessary audit trails can be provided and automated product routing can be supported. [...] The representation of the state of the factory should be comprehensible to human managers, to give them deeper insight and support better decision making.
- 原始内容(工厂非愿景):The software should be Web enabled through a servlet, but structured to allow alternative interfaces. Industry-standard technologies should be used whenever possible to avoid in-house development and maintenance costs and to maximize access to outside expertise. Open source solutions are preferred (such as Apache Web server). The Web server will run on a dedicated server. The application will run on a single dedicated server.
- 转录说明:四段分别对应原书表格的两行及“属于/不属于愿景”两列;`[...]` 标明工厂愿景中略去人力资源与工艺配方句。这是原书示例文本,不是实施结果。