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

1

u/knoam Oct 15 '20

Try writing some documentation yourself and you'll see what happens. You accumulate a wide variety of functionality, so you come up with an abstraction to cover all the cases. The wider the variety, the more abstract the abstraction. Then when you write the documentation, you're looking at the code and you want to be accurate so your explanation is equally abstract.

Now you the user want the documentation to explain how to handle your precise case without getting into the complication of everyone else's cases or having to learn the abstractions.

The solution I think is recognizing that these are two types of documentation that both need to be present. Examples maybe should be in a different place than API docs. Also there needs to be feedback on the documentation since different people come at it from different perspectives. And I would have something very high level that lays out the big picture concepts. Definitions and diagrams.