知识卡片
知识级与责任层可作为不同组织维度共存
知识级看起来像责任层的“政策层”,但依赖方向不同:知识级与操作级之间可能相互引用;责任层要求较低层独立于较高层。因此不能把二者当成同一种分层。
知识级可与其他大型结构共存,作为模型的另一组织维度。选择时要看团队是否需要把可编辑规则与日常对象的关系讲清楚。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 原书第16章|Knowledge Level · 查看原书依据
At first glance, KNOWLEDGE LEVEL looks like a special case of RESPONSIBILITY LAYERS, especially the "policy" layer, but it is not. For one thing, dependencies run in both directions between the levels, but with LAYERS, lower layers are independent of upper layers. In fact, KNOWLEDGE LEVEL can coexist with most other large-scale structures, providing an additional dimension of organization.
参考来源
- 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第131章《Knowledge Level》(源文件:_epub-src/0321125215_ch16lev1sec4.html)
- 结论依据:原文最后明确区分知识级与责任层的依赖方向,并指出它可与其他大型结构共存。
- 原始内容:At first glance, KNOWLEDGE LEVEL looks like a special case of RESPONSIBILITY LAYERS, especially the "policy" layer, but it is not. For one thing, dependencies run in both directions between the levels, but with LAYERS, lower layers are independent of upper layers. In fact, KNOWLEDGE LEVEL can coexist with most other large-scale structures, providing an additional dimension of organization.
- 转录说明:所引句子在原 EPUB 中连续,原卡术语及标点前的多余空格来自强调标签边界,已按可读正文规范转录。