Ask HN: What are good examples of technical docs you've seen? Bad examples?
I've been helping out a few open source projects with documentation, and would love to flip through what you consider good and bad documentation. I'll keep the request wide since I'm interested in different forms (API docs, lib docs, quick start guides, reference docs).
14 comments
[ 4.5 ms ] story [ 42.5 ms ] threadMost of documentation is simple enough to understand with examples and highlighted with right colors wherever it is required (I feel color highlighting remains under appreciated in documentation). And also one can invoke apis and play a bit.
Bad : mongoose.
i find problems with google's documentation on a daily basis. it is not good. it is very bad.
Let's say we wanted to know about the `explode` function, right at the top of their page is a search box. Type in the function and a dropdown populates with a brief description of the function, adding confidence that you're on the right result.
You click the function and right there it gives you the function signature in easily readable text that's color coded. Just at a glance I know that explode will return an array, I must pass it a delimiter first, then the string I want to split and then there is an optional argument in square braces.
If that wasn't enough it goes on to explain each parameter down below as well as the return values.
Further down is the change log on what changed between versions.
Next up are what really makes the PHP documentation shine for me: examples.
Succinct and to the point examples with comments that have always been enough to get me started with the basics.
This would have been good enough, but they go a step further to give me related functions in the "See Also" section. Sometimes I'm looking for one function, but then find a function that can do it better, or I realize that hey after I perform this action, I'm probably going to need to use another one of these related functions such as the `implode` function.
User comments at the bottom are also great! They are usually insightful and have been very helpful in the past.
The writing for classes and extensions is also equally as good: well written, quick start guides, installation settings for Windows and Linux.
I've always felt that the website was very user friendly and accessible. When you go to the landing page you're not overwhelmed with information. Just a quick blurb about what PHP is, the news of releases, easy to find download options, and documentation and search are all above the fold and prominently featured.
OpenBSD's man pages are also excellent reference documents. One really great thing is that they document all possible behaviors, which is disturbingly rare for (e.g.) Python libraries.
New York Times API docs
https://docs.djangoproject.com/en/1.10/
I love how they provide example code for everything and explain it.
It'd also be helpful to better understand what is missing in the resources you've read.
You can email nemild at google's email service.