how to design a good api and why it matters
Posted soul.stone
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了how to design a good api and why it matters相关的知识,希望对你有一定的参考价值。
http://www.open-open.com/doc/view/ceee1d75382f4bbc93c8a8a2a98b4e52
Characteristics of a Good API
? Easy to learn
? Easy to use, even without documentation
? Hard to misuse
? Easy to read and maintain code that uses it
? Sufficiently powerful to satisfy requirements
? Easy to extend
? Appropriate to audience
General Principles
API Should Do One Thing and Do it Well
API Should Be As Small As Possible But No Smaller
Implementation Should Not Impact API
Minimize Accessibility of Everything
Names Matter–API is a Little Language
Documentation Matters
Effects of API Design Decisions on Performance are Real and Permanent
API Must Coexist Peacefully with Platform
以上是关于how to design a good api and why it matters的主要内容,如果未能解决你的问题,请参考以下文章
翻译 github上How to be a good programmer
[特征选择] DIscover Feature Engineering, How to Engineer Features and How to Get Good at It 翻译
AOJ 2230 How to Create a Good Game(费用流)
Baozi Training System design interview: how to design a simple twitter search system
System design interview: how to design a feeds system (e.g., Twitter, Instagram and Facebook news fe
How to: Create a Business Model in the XPO Data Model Designer