此卡片不在当前主题的阅读序列中,可返回主题继续阅读。
知识卡片
模型驱动设计兼顾分析与实现
模型驱动设计要求同一核心模型既准确表达领域关键概念,又能成为可构建、有效运行的软件设计基础。设计对象应有清楚的概念角色,模型与设计的映射应易于看见。若模型难以实现,或实现方便却歪曲领域,都应重新寻找抽象。这里的“同一”以系统的特定部分为范围;不同子系统可以采用不同模型。参见 [[通用语言以模型为骨架]]。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第03章|A Medieval Sky Computer · 查看原书依据
The design has to specify a set of components that can be constructed with the programming tools in use on the project that will perform efficiently in the target deployment environment and will correctly solve the problems posed for the application.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第24章《原书第03章|A Medieval Sky Computer》(源文件:_epub-src/0321125215_ch03lev1sec1_split_001.html)
- 结论依据:原文明确以一个模型同时服务分析和设计,要求领域表达与实现可行性两者都满足,并把单模型范围限定在系统的特定部分。
- 原始内容:An analysis must capture fundamental concepts from the domain in a comprehensible, expressive way. The design has to specify a set of components that can be constructed with the programming tools in use on the project that will perform efficiently in the target deployment environment and will correctly solve the problems posed for the application. M ODEL-DRIVEN DESIGN discards the dichotomy of analysis model and design to search out a single model that serves both purposes. Setting aside purely technical issues, each object in the design plays a conceptual role described in the model. [...] This approach demands a model that works well as both analysis and design. When a model doesn't seem to be practical for implementation, we must search for a new one. When a model doesn't faithfully express the key concepts of the domain, we must search for a new one. [...] Design a portion of the software system to reflect the domain model in a very literal way, so that mapping is obvious. [...] Sometimes there will be different models for different subsystems (see Chapter 14 ), but only one model should apply to a particular part of the system, throughout all aspects of the development effort, from the code to requirements analysis. (原 EPUB 的 `M ODEL-DRIVEN` 是首字母排版拆分;`[...]` 标明非连续省略。)