Article: Joshua Bloch: Bumper-Sticker API Design
In this article, Joshua Bloch, Chief Java Architect at Google and former Distinguished Engineer at Sun Microsystems, presents a list of maxims intended to be a concise summary of good API design guidelines. The maxims represent the abstract written by Joshua for his session "How to Design a Good API and Why it Matters" held during JavaPolis 2006.
Read Article: Joshua Bloch: Bumper-Sticker API Design
Watch Presentation: How to Design a Good API & Why it Matters
Documentation...
by
Seb Rose
"Documentation matters. No matter how good an API, it won't get used without good documentation. Document every exported API element: every class, method, field, and parameter."
A contradiction, I think.
Re: Documentation...
by
Kurt Christensen
Re: Documentation...
by
Albert Hwang
For example, if your API had a method that parsed a string and removed all white spaces, 'trim' would be much better than 'parse'.
// does not require documentation
a.trim();
// does require documentation
// parse string and remove all white spaces
a.parse();
Converting use-case tests into examples in tutorials: code citing
by
Peter Arrenbrecht
Maintain the code for uses-cases as the API evolves. Not only will this protect you from rude surprises, but the resulting code will become the examples for the API, the basis for tutorials and tests.
I wrote a tool to cite snippets of Java source code into documentation for exactly this purpose. Supports omitting irrelevant detail and highlighting especially relevant parts.
You can see it in action in a largish project in that project's Quick Start example and all of the tutorial, as in this example.
I've read this before.
by
Jasper Novotny
Re: I've read this before.
by
Abel Avram
These things are a lot in Jaroslav Tulach's new book. Only real difference is that 'diamonds' above are 'stars' there.
Joshua Bloch's article is just a late follow-up of his presentation done in 2006 (www.infoq.com/presentations/effective-api-design). I hope you don't suspect Bloch plagiarizing Tulach.
Diamonds vs. stars
by
Jaroslav Tulach
Re: I've read this before.
by
Rich Unger
Re: I've read this before.
by
Ilja Preuß
Jaroslav's book is almost entirely devoted to disproving the last one: "API design is an art, not a science." He argues (convincingly, I think) that there are sound engineering principles which can be applied to design an API.
So, are you saying that engineering is science, not art? ;)
A collection of resources on API design
by
Christopher Bare
digitheadslabnotebook.blogspot.com/2010/07/how-...
Educational Content
Large-Scale Continuous Testing in the Cloud
John Penix May 24, 2013
Managing Build Jobs for Continuous Delivery
Martin Peston May 24, 2013
Clojure in the Field
Stuart Halloway May 23, 2013




Hello stranger!
You need to Register an InfoQ account or Login to post comments. But there's so much more behind being registered.Get the most out of the InfoQ experience.
Tell us what you think