Earlier quoted context omitted.
I've said before that the killer feature that launched Java wasn't garbage collection or checked exceptions, but javadoc. Autogenerating HTML documentation based on strictly-typed interfaces was absolute genius and I really haven't seen it topped by any modern language.
The problem with this family of tooling is that they are essentially fill-the-blanks forms and that all the surrounding ceremony is generated indiscriminately of wether the blanks were actually filled or not. Or worse: (pre-)filled with redundant placeholders like "@return returns the $Typename". The frustration pointed out by OP is that when you see a page of "blank" generated documentation you never know if there i…
Four kinds of documentation
131–140 of 203 posts
Re: Four kinds of documentation
#132Earlier quoted context omitted.
Same here. Why is documentation standard so low? Tell me how that buffer management works (do I provide it? delete it? when? how?); how threading is supported (reentrant? send/receive at the same time/different threads? interprocess?); dependencies (necessary initialization? teardown? states in between?); efficiency (can I hold a lock around the call? does it block?). Instead, we often get nothing but a method name a…
> Why is documentation standard so low? Even in companies where good documentation would raise revenue in a way that the sales team notices[1], someone still needs to write it and someone still needs to make the business case for writing it. Engineers could, but many don't. If you're passionate about good documentation, but don't think you can deliver, it would be foolish to unless someone else is doing the writing.…
Re: Four kinds of documentation
#133What I’m always looking for with technical documentation - which I rarely if ever am able to find - is, what problem is this thing is trying to solve? How is, say, Angular better than plain-old Javascript? How is Spark better than a shell script triggered by a cron job? How is Spring better than Java by itself? What sorts of problems are they most appropriate for? Sometimes I suspect that I can’t find this informatio…
(though you could say that this is part of the "Explanation" quadrant)
Re: Four kinds of documentation
#134I use lack of ambiguity as a measure of documentation quality. The best (honestly the only good) documentation that I've ever found is at: " rel="nofollow">https://www.php.net/ For example: https://www.php.net/echo Note how even this simple arbitrary example tells us "No additional newline is appended." It's shocking to me how many other guides would leave something that critical out of the manual. Then there are eve…
Re: Four kinds of documentation
#135Earlier quoted context omitted.
I do not share your experience, because in my experience the auto-generated docs will be kept in sync with the code/API while a separate specification will become outdated over time. This does of course require human-readable description in all the endpoints. But that's the same as only an autogenerated function signature in code documentation vs an added human-readable description.
I've said before that the killer feature that launched Java wasn't garbage collection or checked exceptions, but javadoc. Autogenerating HTML documentation based on strictly-typed interfaces was absolute genius and I really haven't seen it topped by any modern language.
Re: Four kinds of documentation
#136I use lack of ambiguity as a measure of documentation quality. The best (honestly the only good) documentation that I've ever found is at: " rel="nofollow">https://www.php.net/ For example: https://www.php.net/echo Note how even this simple arbitrary example tells us "No additional newline is appended." It's shocking to me how many other guides would leave something that critical out of the manual. Then there are eve…
Google "mysql concat" and see for yourself. Giant one-page docs are terrible. PHP got it right from the beginning.
Re: Four kinds of documentation
#137so do it while making the stuff
especially once you reach the end, have it working, and are talking about it as if it's right in front of you
do. it. then!..
don't wait till people are asking about it like it's recently forgotten.. even then, you're talking about it like it's in front of you; good docs time
(point: repair broken links before breaking & appreciate and accept broken-ness as default, afair)
(inside: i have a dream of a well-documented world)
(point2: remember)
Re: Four kinds of documentation
#138Earlier quoted context omitted.
I've said before that the killer feature that launched Java wasn't garbage collection or checked exceptions, but javadoc. Autogenerating HTML documentation based on strictly-typed interfaces was absolute genius and I really haven't seen it topped by any modern language.
This is also a great feature of Haskell, especially Hoogle, which is what I miss the most when working in Java. If I want to find a function which, say, removes items from a Map based on a function over values, in Java I have to look and see if it's in the Map class. Nope. Is it in Guava Maps? Ah, there it is, "filterValues". In Hoogle, I can type `Map k v -> (v -> Bool) -> Map k v` into the search bar, and it finds…
When you're looking for functions, do you generally use Hoogle, or do you have a local autocomplete-like feature hooked in to your editor? I really want to be able to use this while writing code.
Re: Four kinds of documentation
#139Re: Four kinds of documentation
#140Earlier quoted context omitted.
> Why is documentation standard so low? Even in companies where good documentation would raise revenue in a way that the sales team notices[1], someone still needs to write it and someone still needs to make the business case for writing it. Engineers could, but many don't. If you're passionate about good documentation, but don't think you can deliver, it would be foolish to unless someone else is doing the writing.…
I think free writing such as journaling can help one get better at writing first drafts. Its important to practice the skill of getting something written.