Friday, February 20, 2009

How to write a generic API

Joel made an interesting point today. His approach to writing generic APIs. When there is only one use case for an API. Write the API specific to that use case. When you discover the second use case then generalize the API.

No comments: