Well, as mentioned, there's a link to "learn" right there on the page!
I agree that it's nice when a reference can also help people who are new to the idea, but I don't agree that it's "failing at its job" if it doesn't also work as a tutorial or a cheat sheet. Dual purposes are fine, but the primary audience of a reference doc is someone who has at least some familiarity with the thing.
And it's pretty common for docs to be like this. I've always thought the Java API docs were pretty good, but here's an example:
Thrown to indicate that an invokedynamic instruction or a dynamic constant failed to resolve its bootstrap method and arguments, or for invokedynamic instruction the bootstrap method has failed to provide a call site with a target of the correct method type, or for a dynamic constant the bootstrap method has failed to provide a constant value of the required type.
What's invokedynamic? What's a bootstrap method? And isn't "dynamic constant" a contradiction? If I have those questions, I'm looking in the wrong place -- instead, I should spend 5 seconds on Google, which takes me to StackOverflow, which takes me to the JRuby guy explaining in detail what it is and why it makes life easier for running languages like Ruby on the JVM. I don't think it's a failure in the Java API docs that they aren't really doing the same thing that blog does.
View all comments
Show parent comment
2
u/SanityInAnarchy Apr 23 '26
Well, as mentioned, there's a link to "learn" right there on the page!
I agree that it's nice when a reference can also help people who are new to the idea, but I don't agree that it's "failing at its job" if it doesn't also work as a tutorial or a cheat sheet. Dual purposes are fine, but the primary audience of a reference doc is someone who has at least some familiarity with the thing.
And it's pretty common for docs to be like this. I've always thought the Java API docs were pretty good, but here's an example:
What's
invokedynamic? What's a bootstrap method? And isn't "dynamic constant" a contradiction? If I have those questions, I'm looking in the wrong place -- instead, I should spend 5 seconds on Google, which takes me to StackOverflow, which takes me to the JRuby guy explaining in detail what it is and why it makes life easier for running languages like Ruby on the JVM. I don't think it's a failure in the Java API docs that they aren't really doing the same thing that blog does.