知识卡片
扩展边界隐藏内部结构
扩展点用于让用户接入无法预先穷尽的选择,如日期格式、数据来源或算法行为。应清楚限定其任务、输入与输出,使用用户理解的稳定概念,绝不直接暴露内部数据结构,否则一次内部修改就可能破坏外部扩展。服务或云函数也能成为扩展,不限于进程内插件。
这张卡片看不懂?
这张卡片的反馈已满 10 条,暂时无法继续提交。
已有反馈 · 0 / 10 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- 理解用户体验 · 查看原书依据
When we design extensions, we should decide what they can do. Just like a good API, a good extension also does one thing and does it well. We should define the input and output to control what our extensions can do.
参考来源
- 位置:《Software Architecture and Decision-Making》第4章《理解用户体验》(来源项目:book-sources;源文件:extracted/Software Architecture and Decision-Making Leveraging Leadership, Technology, and Product Management to Build Great Products… (Srinath Perera)/_epub-src/ch04.xhtml)
- 结论依据:原文的定义、比较或例子支持“扩展点用于让用户接入无法预先穷尽的选择,如日期格式、数据来源或算法行为”;正文据此说明用途和边界。
- 原始内容:When we design extensions, we should decide what they can do. Just like a good API, a good extension also does one thing and does it well. We should define the input and output to control what our extensions can do.