Live data from Hacker News

Ask HN: What's the best SDK documentation you’ve ever read?

news.ycombinator.com

1–10 of 51 posts

Re: Ask HN: What's the best SDK documentation you’ve ever read?

#6
I don't have a view on SDK documentation but the best API documentation I've read is the Win32 docs.

Why? They are comprehensive, detailed, consistent, systematically presented, clearly explained and professionally written. Microsoft documentation has sadly gone steeply downhill since.

Re: Ask HN: What's the best SDK documentation you’ve ever read?

#9
post #3

I know there are lot of hate for Java but I find Java Doc very complete and helpful.

Java docs are great because they document: * technical details and algorithms used * side effects * runtime and memory usage * inputs that result in undefined behavior * causes of exceptions * behavior when accessed concurrently * thoroughly hyperlinked

It's been this way for decades and the presentstion has remained largely consistent the whole time.

Re: Ask HN: What's the best SDK documentation you’ve ever read?

#10
post #5

The Android SDK is well documented with examples throughout and hyperlinked to examples and posts which explain some content in greater depth.

Did they improve it recently ? I haven’t developed for Android in a while but it used to be terrible. Full of absolutely useless method descriptions.

For example, I remember getting frustrated because of the docs for a setTextSize method, with the helpful description “sets the text size”. Nice. Very helpful that it didn’t mention what unit the parameter was, especially since (after experimentation) it turns out the unit is not the one you would expect for a font size.

The API docs were full of that kind of ‘documentation’, setX: “Sets X”.

If you are writing documentation, please explain what method parameters and return values actually mean, what the units used are. Especially if uses a unit no one expects. For example: font sizes are usually specified in points, if you expect them to be specified in pixels you should absolutely mention that.

Post reply on HN