'. '

Simple library

From APIDesign

Revision as of 18:57, 8 May 2012 by JaroslavTulach (Talk | contribs)
Jump to: navigation, search

Some libraries, let's name them simple libraries, have just one implementation. The designer that defines what the API should do also implements it. Obviously, the proximity between the API and the provider of the implementation is almost zero - it is the same person or the same team.

Simple libraries are usually self contained. They combine the API specification together with the implementation. There is no reason, no way to plug into the library and change the way it behaves (for other clients of its API). Examples of such simple library include most of java.util package (with classes like ArrayList or Collections)), or other utility classes like Math class.

Of course, there may be some attempts to re-implement these simple libraries (like GNU Classpath or Harmony show), but those are usually licensing driven efforts, not purely technical ones.

Especially when the simple library is available as open source. If there is some flaw in the library, it seems easier to contribute an API Patch back than fork and maintain such fork.

In general, there is little to no reason to re-implement simple libraries.

Personal tools
buy