How do you learn how to use a library?

Following an interesting discussion on Sitepointforums, a rough poll.

If you’re getting started with some class library, like one of the many in PEAR, which of the following (if any) steps do you take to work out how to use it (and in what order)?

a: Examples package with the code


b: API docs (such as that generated by phpDocumentor or the PHP manual)

c: Reading the source code

d: Any packaged documentation (such as tests and READMEs)

e: Guessing method names (with IDE help) and parameters.

f: Online tutorial (e.g. those on Sitepoint or a developers WIKI)

g: Pair programming

h: Print magazine articles

i: Book chapters