GetDunne Wiki

Notes from the desk of Shane Dunne, software development consultant

User Tools

Site Tools


api_guessing_game

This is an old revision of the document!


The API Guessing Game

Some day I intend to write an eloquent essay on the virtues of good software documentation, particularly as it applies to software libraries for use by other programmers. For the moment, I will say only this:

  • Once one achieves a basic level of coding competence, programming mainly involves choosing appropriate libraries, understanding their APIs, and debugging.
  • All three aspects require good documentation above all.
  • The greatest library/API design in the world is no use if programmers can't figure out how to use it.
  • A few cryptic comments, processed through Doxygen, are not sufficient.
  • Good API documentation requires exactly two things:
    1. Working client code
    2. Explanation of how the API is supposed to be used
  • Most API documentation has neither.
  • “Kitchen-sink” demo code (one giant demo app) is not nearly as useful as multiple smaller demos.
  • (But one kitchen-sink demo is better than nothing.)
api_guessing_game.1506798443.txt.gz · Last modified: 2017/09/30 19:07 by shane