Ben said:
Mark Bluemel said:
Khookie said:
I've been dev'ing in C for the past few months, and was wondering
whether there was a standard coding style for [snip] documenting
functions
Perhaps doxygen?
Is doxygen documentation ever useful? I've read through lots of
doxygen-generated documentation, but I was always left with
numerous questions that could only be answered by looking at the
source. Given that, I usually prefer to use something like
"tags" to jump directly to function definitions. If the function
has a comment at the top explaining its purpose, then that's more
convenient than looking at a separate document describing its
purpose, and the source code is right there to answer any
remaining
Somewhat similar points that Jack makes, I started using doxygen some
5-6 years ago, and have not really used the tool to it's full potential
yet, but rather used it in a way to structure comments that I anyway
would have written.
My last programming project was very XP like, the time limits where
extremely short, and the functional specs a disaster. In order to reach
delivery dates, both top-down and bottom-up programming strategies where
used (just like drilling a tunnel from both ends, and hope the two teams
link up in the middle).
Some test cases where skipped, each given a '\test' tag, where shortcuts
could be taken, a '\todo' tag was inserted, in rare cases, known bugs
was left in with a '\bug' tag. The delivery date was met, before the day
fines started running. For phase 2, we will have far better time, and
can address all those shortcuts being made. Sure we could have used
another method or documenting tool, but it was easy and efficient.
I find it an advantage, to have documentation close to the source, and
it shouldn't be necessary to read the source to interface a library API
correctly. Doxygen can generate the docs in a number of formats, and by
including the dot package, you also get those awesome looking graphs.