← 返回刚才阅读的位置

知识卡片

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

大型结构要进入通用语言并由全队维护

理解等级:高级

大型结构往往是概念性约定,代码和功能测试未必能显式检查它。若各开发者只偶尔讨论、却在新开发与重构时采用不同理解,结构会逐渐失效。

团队需要把结构中的术语与关系纳入通用语言,在设计讨论和改动中持续使用,并靠共同自律维持一致。这给独立开发者提供了对整体系统作相容决策的词汇。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第16章|Refactoring Toward a Fitting Structure · 查看原书依据

      Without consistent adherence by the many people involved, structures have a tendency to decay. The relationship of the structure to detailed parts of the model or implementation is not usually explicit in the code, and functional tests do not rely on the structure. Plus, the structure tends to be abstract, so that consistency of application can be difficult to maintain across a large team (or multiple teams). The kinds of conversations that take place on most teams are not enough to maintain a consistent large-scale structure in a system. It is critical to incorporate it into the UBIQUITOUS LANGUAGE of the project, and for everyone to exercise that language relentlessly.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第134章《Refactoring Toward a Fitting Structure》(源文件:_epub-src/0321125215_ch16lev1sec7.html) - 结论依据:原文说明结构在代码与测试中不一定显现,强调全队理解、通用语言和持续自律。 - 原始内容:Without consistent adherence by the many people involved, structures have a tendency to decay. The relationship of the structure to detailed parts of the model or implementation is not usually explicit in the code, and functional tests do not rely on the structure. Plus, the structure tends to be abstract, so that consistency of application can be difficult to maintain across a large team (or multiple teams). The kinds of conversations that take place on most teams are not enough to maintain a consistent large-scale structure in a system. It is critical to incorporate it into the UBIQUITOUS LANGUAGE of the project, and for everyone to exercise that language relentlessly.