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/EternityForest Oct 15 '20

Do they like people suffering? Quite possibly from the looks of some stuff they write.

But lack of documentation isn't the problem, it's the need for it in the first place.

There are so many metrics people use to evaluate code quality, but minimal need for documentation is a pretty good one.

If you have to call 15 functions to show an image on the screen, you might just be using the wrong library.

1

u/knoam Oct 15 '20

If you have to call 15 functions to show an image on the screen, you might just be using the wrong library.

Or the problem has more inherent complexity than you realize going in, and then you need the documentation to explain that. On the other hand a good library should have reasonable defaults rather than ask me questions I don't know the answer to. Like Convention Over Configuration.

1

u/EternityForest Oct 15 '20

Inherent complexity can almost always be hidden or automated away somehow, so long as you don't mind adding functions for the most common but special cases.