InfoQ: How to Design a Good API & Why it Matters
Here is a video on good API design by Joshua Bloch (Joshua Bloch is a Principal Engineer at Google)
The crux:
1. Easy to learn
2. Easy to use, even without documentation
3. Hard to misuse
4. Easy to read and maintain code that uses it
5. Sufficiently powerful to satisfy requirements
6. Easy to extend
7. Appropriate to audience
No comments:
Post a Comment