Humor in Documentation

Posted by Lex Fridman on Programmers See other posts from Programmers or by Lex Fridman
Published on 2011-06-30T01:23:43Z Indexed on 2011/06/30 8:30 UTC
Read the original article Hit count: 289

Filed under:
|

Is a small amount of lighthearted wording or humor acceptable in source code documentation?

For example, I have an algorithm that has a message hop around a graph (network) until its path forms a cycle. When this happens it is removed from the queue of the node it last resided on which removes it from memory. I write that in a comment, and finish the comment with "Rest in peace, little guy".

That serves very little documenting purpose, but it cheers me up a bit, and I imagine it might cheer up other people I'm working with as they read through the code.

Is this an acceptable practice, or should my in-code documentation resemble as much as possible the speeches of 2004 presidential candidate John Kerry? ;-)

© Programmers or respective owner

Related posts about documentation

Related posts about humor