How to create a good API

O’Reilly hosts an article presenting best practices for APIs

… API design goals

What should the design goals of your API be? Apart from compatibility, the following goals from Elliotte’s
presentation seem like an excellent set:

It must be absolutely correct. In the case of XOM, this meant that the API could never produce malformed XML documents no matter what the caller did. For the JMX API, for example, it means that you can never get the MBean Server into an inconsistent state by registering strange MBeans in it or using funny ObjectNames or performing several operations concurrently. …

Find the set on the article, it is worth reading…


Tags: , ,

One Response to “How to create a good API”

  1. photo sharing Says:

    I’ll be working on an API soon – this helped me a little.
    thanks dude

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: