smart code comments
May. 8th, 2014 08:09 am![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
http://www.quora.com/Computer-Science/What-is-the-smartest-comment-ever-in-a-block-of-code
// I dedicate all this code, all my work,
// to my wife, Darlene, who will
// have to support me and our three
// children and the dog once it gets
// released into the public.
// Magic. Do not touch.
// this comment included for the benefit of
// anyone grepping for swearwords: shit.
// I am not responsible of this code.
// They made me write it, against my will.
// no comments for you
// it was hard to write
// so it should be hard to read
/* Be a real daemon: fork myself and kill my parent */
// I don't understand how the following bit works,
// but it worked in the program I stole it from.
// Dear maintainer:
// Once you are done trying to 'optimize' this routine,
// and have realized what a terrible mistake that was,
// please increment the following counter as a warning
// to the next guy:
// total_hours_wasted_here = 42
no subject
Date: 2014-05-08 03:59 pm (UTC)