返回主题:模式语言与复杂关系

知识卡片

普通读书笔记卡 · 1971.o.1.c.1.b.5

复用成熟模式可把精力留给领域特例

理解等级:高级

作者的 Peugeot 汽车故事说明高度独特的设计即使运作良好,也可能让普通维修者难以理解和维护。采用已验证的模式可减少对已知问题的重复发明,并降低模型过于奇特带来的沟通成本。

领域设计仍需针对真正特殊的需求创新;软件领域模式尚未像汽车零件或房屋空间那样成熟、具体,因此应借模式获得共同起点,而非强迫每处采用标准答案。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 附录|The Use of Patterns in This Book · 查看原书依据

      Although software domain design is not as mature as other design fields—and in any case may be too diverse to accommodate patterns as specific as those used for car parts or rooms—there is nonetheless a need to move beyond "Everything is an object" to at least the equivalent of distinguishing bolts from springs.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第143章附录《The Use of Patterns in This Book》(源文件:_epub-src/0321125215_app01.html) - 结论依据:原文把汽车维修经历、已知方案复用和软件领域模式成熟度限制连在一起。 - 原始内容:Peugeot is an old company, and it has followed its own evolutionary path over many decades. It has its own mechanical terminology, and its designs are idiosyncratic; even the breakdown of functions into parts is sometimes nonstandard. The result is a car that only Peugeot specialists can work on, a potential problem for someone on a grad student income. [...] Sometimes we have to invent something completely new. But by basing standard elements on patterns, we avoid wasting our energy on problems with known solutions so that we can focus on our unusual needs. Also, building from conventional patterns helps us avoid a design so idiosyncratic that it is difficult to communicate. Although software domain design is not as mature as other design fields—and in any case may be too diverse to accommodate patterns as specific as those used for car parts or rooms—there is nonetheless a need to move beyond "Everything is an object" to at least the equivalent of distinguishing bolts from springs. - 转录说明:`[...]` 标明 Peugeot 例子与后续模式论述之间的省略;末句的 `—` 是原 EPUB 中的异常破折号字节,原样保留并标出,不将规范转录误作原文。