← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 1971.o.1.c.1.f.3.a

积极重构仍需守住边界

理解等级:高级

倾向及时重构,不等于随时改动。原书列出三条约束:

  1. 不在发布前一天贸然重构。
  2. 不为展示技术巧思而引入与领域核心无关的“柔性设计”。
  3. 不采用无法说服领域专家使用的“深层模型”,即使它形式优雅。

因此在推进前,应同时核对发布时点、领域问题和专家语言;这是一组判断线索,而非禁止一切临近发布的必要修复。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第13章|Timing · 查看原书依据

      This aggressive attitude does not justify any change at any time. Don't refactor the day before a release. Don't introduce "supple designs" that are just demonstrations of technical virtuosity but fail to cut to the core of the domain. Don't introduce a "deeper model" that you couldn't convince a domain expert to use, no matter how elegant it seems. Don't be absolute about things, but push beyond the comfort zone in the direction of favoring refactoring.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第96章《Timing》(源文件:_epub-src/0321125215_ch13lev1sec5.html;单元01) - 结论依据:原文在倡导积极重构后明确排除发布前一天、技术炫技和专家不会使用的模型,并告诫不要绝对化。 - 原始内容:This aggressive attitude does not justify any change at any time. Don't refactor the day before a release. Don't introduce "supple designs" that are just demonstrations of technical virtuosity but fail to cut to the core of the domain. Don't introduce a "deeper model" that you couldn't convince a domain expert to use, no matter how elegant it seems. Don't be absolute about things, but push beyond the comfort zone in the direction of favoring refactoring.