r/AskProgramming • u/[deleted] • 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
r/AskProgramming • u/[deleted] • Oct 14 '20
5
u/bartonski Oct 14 '20
To play devil's advocate a bit here... the definition of abstraction is 'To remove specifics'. Some things are, by their nature, abstract, and adding specific examples can act to obscure a generality that needs to be there in order to fully express the abstraction that's being documented -- if you're learning about how to use pointers in C, you can give examples of pointers to strings, arrays of integers, various data structures and so forth, but until you talk about the pointer as a memory location that can address anything, you haven't really told people what a pointer is. Once that's been made clear, function pointers start making sense, because those can live at a memory address just like anything else, but there's no straight line between strings and function pointers until you divorce yourself from the specifics.