知识卡片
大型结构要进入通用语言并由全队维护
大型结构往往是概念性约定,代码和功能测试未必能显式检查它。若各开发者只偶尔讨论、却在新开发与重构时采用不同理解,结构会逐渐失效。
团队需要把结构中的术语与关系纳入通用语言,在设计讨论和改动中持续使用,并靠共同自律维持一致。这给独立开发者提供了对整体系统作相容决策的词汇。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 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.