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:15 pm (UTC)no subject
Date: 2014-05-08 03:27 pm (UTC)Комментарии, в которых встречается "I don't understand" в принципе не должны считаться smart.
no subject
Date: 2014-05-08 07:20 pm (UTC)no subject
Date: 2014-05-08 07:50 pm (UTC)И не showing quick intelligence, и не witty, и не saucy...
no subject
Date: 2014-05-08 03:53 pm (UTC)я часто пишу "Do not touch." но не потому что это мейджик, а чтобы не трогали :))
no subject
Date: 2014-05-08 03:58 pm (UTC)no subject
Date: 2014-05-08 08:06 pm (UTC)no subject
Date: 2014-05-08 09:58 pm (UTC)git blame "file" | grep "Vlad Mitsner"
no subject
Date: 2014-05-09 10:54 am (UTC)программисты приходят и уходят. далеко не всё можно объяснить.
no subject
Date: 2014-05-09 11:12 am (UTC)no subject
Date: 2014-05-09 12:07 pm (UTC)no subject
Date: 2014-05-09 12:17 pm (UTC)no subject
Date: 2014-05-09 01:55 pm (UTC)я по своему опыту даже из начального интервью с программистом вижу, выйдет из него толк или нет. но иногда, если программист молодой, то надо дать ему шанс попробовать свои силы и показать себя. тогда он либо покажет себя на практике, либо сольётся. обычно месяца хватает на то, чтобы понять, кто есть ху. но у нас тестовый срок - три месяца, для уточнения диагноза.
no subject
Date: 2014-05-09 01:02 pm (UTC)так что не только программисты лажают. стоители тоже разные бывают, как показывает практика.
no subject
Date: 2014-05-08 03:59 pm (UTC)no subject
Date: 2014-05-08 04:52 pm (UTC)no subject
Date: 2014-05-08 09:59 pm (UTC)long time; /* know C */
Порвало.
no subject
Date: 2014-05-08 10:29 pm (UTC)no subject
Date: 2014-05-09 01:20 am (UTC)* with soap it's loaded