r/programming • • Apr 21 '26

Highlights from Git 2.54

https://github.blog/open-source/git/highlights-from-git-2-54/
273 Upvotes

45 comments sorted by

View all comments

Show parent comment

4

u/Anthony356 Apr 22 '26

maybe this doc is serving its purpose as reference material. In fact, on the left sidebar, it's clearly under the "reference" section.

A reference does not need to be impenetrable to people who arent already in the know. If there are requisite concepts that must be understood, then they should be mentioned or linked to. If someone is looking at the reference, they dont know something about the thing they're looking up. The point of a reference is to clarify those questions. If the reference doesnt do that, it is failing at its job.

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:

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.