← 返回刚才阅读的位置

知识卡片

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

外包通用子域需用测试固定接口

理解等级:高级

通用子域不依赖太多项目专门知识,适合交给外部实现,帮助核心团队专注核心模型;但核心团队仍须说清接口、编码标准与交付要求。原书建议要求交付者提供单元测试,并用自动化验收测试明确规格、检查交付和降低回收代码的成本。

外包并非把设计责任全交出去:质量会随团队而变,若日后收回维护仍需理解代码。与发布模型结合时,双方可先对共同概念取得一致。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第15章|Generic Subdomains · 查看原书依据

      Automated tests can play an important role in outsourcing. The implementers should be required to provide unit tests for the code they deliver. A really powerful approach—one that helps ensure a degree of quality, clarifies the spec, and smooths reintegration—is to specify or even write automated acceptance tests for the outsourced components. Also, "outsourced implementation" can be an excellent combination with "published design or model.

    参考来源

    - 位置:《Domain-Driven Design: Tackling Complexity in the Heart of Software》第119章《Generic Subdomains》(源文件:_epub-src/0321125215_ch15lev1sec3.html;单元02) - 结论依据:原文讨论外包通用子域的资源收益和交接成本,并明确建议单元测试及自动化验收测试。 - 原始内容:Automated tests can play an important role in outsourcing. The implementers should be required to provide unit tests for the code they deliver. A really powerful approach—one that helps ensure a degree of quality, clarifies the spec, and smooths reintegration—is to specify or even write automated acceptance tests for the outsourced components. Also, "outsourced implementation" can be an excellent combination with "published design or model."