知识卡片

普通读书笔记卡 · 2295.f.3.a.1

信息隐藏隔离易变设计

理解等级:中级

模块职责按关注分离与信息隐藏划分,接口应把容易变化的设计细节挡在边界内,使修改不迫使所有使用方一起调整。产生数据与消费数据分开,也可把改变限制在某一侧并支持分阶段升级;新增数据可能仍影响两侧,分离并非取消契约。

相关:[[分解结构递归分配职责]]。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 什么是软件架构 · 查看原书依据

      The information-hiding modules should encapsulate things likely to change, thereby insulating the software from the effects of those changes. Each module should have a well-defined interface that encapsulates or “hides” the changeable aspects from other software that uses its facilities.

    参考来源

    - 位置:《Software Architecture in Practice, 4th Edition》第1章《什么是软件架构》(来源项目:book-sources;源文件:extracted/Software Architecture in Practice, 4th Edition/_epub-src/ch01.html) - 结论依据:原文的定义、机制或比较支持“模块职责按关注分离与信息隐藏划分,接口应把容易变化的设计细节挡在边界内,使修改不迫使所有使用方一起调整”;正文保留其条件与取舍。 - 原始内容:The information-hiding modules should encapsulate things likely to change, thereby insulating the software from the effects of those changes. Each module should have a well-defined interface that encapsulates or “hides” the changeable aspects from other software that uses its facilities.