Great small API/SDK documentation [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this questionThere is similar question to this one h开发者_如何学JAVAere but I guess that by this one I'll get some results and provide added value.
As a SDK developer/provider, I am guessing what to write in the documentation and what the documentation for the SDK should look like. Unavoidable sections that come to mind are:
- whole class reference (with properties, methods, ...)
- code samples for each method
- how-to reference with code snippets
- sample routines and applications to enable coder to get started fast
- ????
S please, in you answer, try to provide at least 3 links to a documentation that is 'great' from your perspective, and give some information on why.
If you want to be language specific, I'm targeting c# developers, and my SDK consists of a small set of classes - so the documentation in answers should be similar. MSDN, DevExpress, Ogre - just an examples of something I don't want to be put as an example, because there are many man-days in them, and are great nevertheless.
Thanks
Using Java and biometrics as an example, standard API docs built using javadoc, like Griaule's at http://www.griaulebiometrics.com/javadoc/FingerprintSDKJava/com/griaule/grfingerjava/GrFingerJava.html, have all the info a developer needs; whereas DigitalPersona has a PDF file with highly-edited API descriptions that don't have the links from method to class to field that a Java developer expects.
Languages and paradigms aside, the more open you can be with your documentation; not trying to hide anything, and keeping your documentation in sync with the actual product, will endear you to your customer base.
More specifically, in your proposed answers to the question, the whole class reference is most important. After that, one sample application that makes use of most of the API, complete with source.
Good documentation costs time. You have to realize that every minute you spend documenting your API will pay back hundredfold on the long run.
That being said, yes, MSDN is the best reference at least for C# developers, because they know it and it works.
精彩评论