Re:
Posted: Sun Jun 22, 2008 12:19 am
I've also started using Doxygen comments in my code. It's very helpful to be able to see instantly what a function does, exactly how it behaves, etc, just by looking at the comment. I also try to comment the internals of functions well if there is anything non-obvious. I don't swear particularly much, only if something like GCC annoys me. I sometimes make jokes in the comments too, although certainly not as much as I used to. I remember getting bored ages ago and writing a comment saying what will happen if the kernel gets to a certain point that it shouldn't, complete with an ASCII-art drawing of a box labelled "Kernel" flying into a brick wallAJ wrote:Recently, I have discovered Doxygen, though, so I am starting to go through my code adding comments to let Doxygen generate documentation. If my kernel gets really big, this should be a good timesaver later.