← 返回刚才阅读的位置

知识卡片

普通读书笔记卡 · 4927.d

共享词汇弥合语义差

理解等级:中级

字段名是需要人理解的“魔法字符串”:两个服务都能解析telephone,并不保证它们对字段含义达成一致。领域词汇应同时明确含义、组织关系和交互规则,即ontology、taxonomy、choreography;跨独立代码库保持一致语义,才让通用消息真正可复用。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • RESTful Web API导论 · 查看原书依据

      He also points out that, even in cases where you’re focused on creating machine-to-machine services, humans are still involved—even if that is only at the programming level. In RESTful Web APIs, he says, “Names matter quite a bit to humans. Although computers will be your API’s consumers, they’ll be working on behalf of human beings, who need to understand what the magic strings mean. That’s how we bridge the semantic gap” (emphasis mine).

    参考来源

    - 位置:《RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)》第01章《RESTful Web API导论》(来源项目 book-sources;源文件:extracted/RESTful Web API Patterns and Practices Cookbook Connecting and Orchestrating Microservices and Distributed Data (Mike Amundsen)/_epub-src/OEBPS/ch01.xhtml;小节:词汇与长期原则) - 结论依据:原文以字段名是需要人理解的“魔法字符串”:两个服务都能解析telephone,并不保证它们对字段含义达成一致的机制或场景为依据;同小节余文补充本卡所列条件,按2022年原书语境整理。 - 原始内容:He also points out that, even in cases where you’re focused on creating machine-to-machine services, humans are still involved—even if that is only at the programming level. In RESTful Web APIs, he says, “Names matter quite a bit to humans. Although computers will be your API’s consumers, they’ll be working on behalf of human beings, who need to understand what the magic strings mean. That’s how we bridge the semantic gap” (emphasis mine).