I took an OS class in college where either a TA or professor would read every line of C code in the OS you turned in. They required every function to have a doxygen style doctrings. It was also a partner based course. Writing those docstrings before implementing the functions not only helped them be more useful, but also helped my partner and I coordinate on features/interfaces before they were done. I think documentation in general is highly underrated.
wck0|7 years ago
cbcoutinho|7 years ago
iamdave|7 years ago
So many times I've looked at a peer's code and had a hard time reconciling what the comments and wiki articles said with what their code was attempting to do.
This mindset is probably a godsend to QA teams.
madhadron|7 years ago
bitL|7 years ago
justizin|7 years ago
so for a given method or class, you have a couplefew paragraphs which explain how to use it, with invocations that are run as part of the test suite.
sometimes there end up being too much acrobatics for this to be as useful as i'd like, but the basic idea is really neat, IMO.
roblabla|7 years ago
crdoconnor|7 years ago
slededit|7 years ago
If you are a public library it also results in the infuriating situation of knowing an API will do what you want but not knowing how to get a parameter or class it requires.
ausjke|7 years ago
nsgoetz|7 years ago