What is the best comment in source code you have ever encountered?
stackoverflow.com
What is the best comment in source code you have ever encountered?
1–10 of 14 posts
Re: What is the best comment in source code you have ever encountered?
#2//When I wrote this, only God and I understood what I was doing //Now, God only knows
Re: What is the best comment in source code you have ever encountered?
#3>"Do not purchase this card, even as a joke."
https://elixir.bootlin.com/linux/v3.1/source/drivers/net/3c5...
Re: What is the best comment in source code you have ever encountered?
#4LOL //When I wrote this, only God and I understood what I was doing //Now, God only knows
Re: What is the best comment in source code you have ever encountered?
#5 /* =========================================
THE BOUNDARY OF SANITY
Behold, stranger!
========================================= */Re: What is the best comment in source code you have ever encountered?
#6> Robert Virding, who developed Erlang with me, was famed for his comment... I think he only... Singular... The entire stuff he wrote had one comment. In the middle of a pattern-matching compiler was a single line that said "And now for the tricky bit"
[1]: https://youtu.be/lKXe3HUG2l4?t=645>
Re: What is the best comment in source code you have ever encountered?
#7Linux driver >"Do not purchase this card, even as a joke." https://elixir.bootlin.com/linux/v3.1/source/drivers/net/3c5...
Re: What is the best comment in source code you have ever encountered?
#8 * You are not expected to understand this.
I find the ultimately misplaced confidence [1] of the comment quietly inspiring, in the context of who wrote it. Even the titans of yesteryear fallaciously convince themselves that, hey, the code works fine, let's get going, and consequently have to bash their heads against some weird quirk they're unintentionally exploiting (and then just rewrite the whole thing).[0] http://catb.org/~esr/jargon/html/Y/You-are-not-expected-to-u...
[1] https://archive.is/eeYMW [2] https://en.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_6t...