← 返回刚才阅读的位置

知识卡片

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

成熟模型更适合领域语言

理解等级:高级

领域专用语言把领域模型的词汇做成可编写程序的语言。若模型已较成熟,且客户代码可能由另一个团队编写,这种分层可能更有用;模型仍频繁变动时,语言语法与客户代码一起重构的成本会升高。

分工容易固化成“高技术框架建造者”与“低技术应用编写者”的隔阂,需让双方保持模型讨论与修改能力。原文仅把 Scheme 类函数式语言作为可能减少语言与应用体系分裂的方向,没有给出实现流程或效果验证。参见[[领域语言贴近模型但需可演进]]。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第10章|From the Ground Up · 查看原书依据

      This technique might be most useful for very mature models, perhaps where client code is being written by a different team. Generally, such setups lead to the poisonous distinction between highly technical framework builders and technically unskilled application builders, but it doesn't have to be that way.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第80章《From the Ground Up》(源文件:_epub-src/0321125215_ch10lev1sec7_split_001.html;单元01) - 结论依据:原文说领域语言技术可能更适于成熟模型及不同团队写客户代码的场景,同时提醒框架团队与应用团队分裂的风险;Scheme 仅作不同范式的方向性提及。 - 原始内容:This technique might be most useful for very mature models, perhaps where client code is being written by a different team. Generally, such setups lead to the poisonous distinction between highly technical framework builders and technically unskilled application builders, but it doesn't have to be that way.