知识卡片

普通读书笔记卡 · 1971.o.1.b.1.a.2.a.1.e.1

组织图案例用图遍历机制支撑业务提问

理解等级:高级

原书的实际项目建模组织关系,以回答“谁能批准”“谁能处理”等问题。困难主要是沿组织关系查找人及关系,于是团队让分包人员实现满足所需功能的图遍历子集:人是节点,人与人的关系是边。

组织模型描述关系和问题;图机制处理遍历,经意图清晰的接口提供结果。原书说这种分离使组织描述更清楚,并让遍历代码能独立维护和单测;它没有声称构建了通用图框架或证明了某项量化性能收益。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第15章|Cohesive Mechanisms · 查看原书依据

      Because most of these questions were along the lines of "Who, in this chain of command, has authority to approve this?" or "Who, in this department, is capable of handling an issue like this?" the team realized that most of the complexity involved traversing specific branches of the organizational tree, searching for specific people or relationships.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第122章《Cohesive Mechanisms》(源文件:_epub-src/0321125215_ch15lev1sec6.html;单元01–02) - 结论依据:原书组织图项目明确区分业务提问、图节点/边表达和狭窄图遍历框架,并说明隔离后的维护与测试价值。 - 原始内容:I went through this process on a project that needed a fairly elaborate model of an organization chart. [...] Because most of these questions were along the lines of "Who, in this chain of command, has authority to approve this?" or "Who, in this department, is capable of handling an issue like this?" the team realized that most of the complexity involved traversing specific branches of the organizational tree, searching for specific people or relationships. [...] A subcontractor implemented a graph traversal framework as a COHESIVE MECHANISM. [...] By no means did he implement a fully general graph. It was a subset of that conceptual framework that covered the features needed for our organization model. And with an INTENTION-REVEALING INTERFACE, the means by which the answers are obtained are not a primary concern. Now the organization model could simply state, using standard graph terminology, that each person is a node, and that each relationship between people is an edge (arc) connecting those nodes. [...] Keeping mechanism and model separate allowed a declarative style of describing organizations that was much clearer. And the intricate code for graph manipulation was isolated in a purely mechanistic framework, based on proven algorithms, that could be maintained and unit-tested in isolation. - 转录说明:`[...]` 标明各处实际省去的模型描述、形式化图说明、框架用语及机制与模型分离的分析句;原 EPUB 强调标签边界造成的术语前空格已规范转录。