r/AskProgramming • • Oct 14 '20

Programmers, who write documentation, why make it soo abstract with little to none explanation and examples? Do you like people suffering?

65 Upvotes

35 comments sorted by

View all comments

20

u/turtle_dragonfly Oct 14 '20

Another to add: once you document something, it becomes a promise that you have to keep in the future, which is a burden.

For instance, Java documented its String.hashCode method, describing how it worked. People wrote code based on the assumption that it would always work that way, since it was documented. Now, they can't easily implement a superior hash algorithm, because it would break backwards compatibility.

7

u/[deleted] Oct 14 '20

Now, they can't easily implement a superior hash algorithm, because it would break backwards compatibility.

Wow. Okay I see the weight of examples now. You have opened my eyes. Thanks