← 返回刚才阅读的位置

知识卡片

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

模式正文应聚焦问题与解法而将长实现讨论外置

理解等级:中级

作者给出本书的模式叙述骨架:概念与上下文、问题及作用力、解决方案、导向后续模式的结果上下文,以及实现考虑。若实现挑战或组合多个模式的长案例占据过多篇幅,可放在核心模式叙述之后,使读者先看清问题如何导向解法。

这是本书的写作组织方法;作者也说明部分上下文讨论放在章节引言,具体格式会随清晰度调整,不要求每个模式机械遵循同一模板。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第144章附录《Pattern Name》(源文件:_epub-src/0321125215_app01lev1sec1.html;单元01) - 结论依据:原文列出模式叙述要素,并解释为何把较长的实现困难与复合案例置于核心模式之外。 - 原始内容:However, much of the context discussion in this book is in the chapter introductions and other narrative segments, rather than within the patterns. [...] Resulting context: A brief explanation of how the pattern leads to later patterns. [...] But some patterns demand lengthier discussions of implementation. To keep the core pattern discussion tight, I have moved such long implementation discussions out, after the pattern. - 转录说明:`[...]` 标明原书不同段落间的省略;所引各句均来自本节。