January 21, 2006

A code comment

In any programming language, it's possible to leave comments to someone who might be reading your code later. These are human readable but will be ignored by the computer as the program is being processed. In the C programming language, the comments are set apart by a /* and then each line of comment has an asterisk and a space at the beginning. The comments are closed by a */ Richard Bennett found a very literate comment in a scrap of code that resets the entire system (kills everything and forces it to reload from it's original default state):
Milton in the code
I found this in some code I was reading today:
/*
* Farewell, happy fields,
* Where joy forever dwells; hail horrors!
*
* John Milton, Paradise Lost
*/
system_reset();
I work for a very literate company, apparently.
Heh... Posted by DaveH at January 21, 2006 10:05 PM