HACKER Q&A
📣 herodoturtle

Famous code comments found in popular open source software packages?


I came across John Carmack's 0x5f3759df Kung Fu the other day, and thoroughly enjoyed his use of expletives in that one comment.

Here is a brief overview of the code (Warning: Foul language.):

https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overview_of_the_code

I was wondering what other famous(/notorious) comments existed in our favourite open source software packages?

(This is my first time posting a question, sorry if I got the etiquette wrong.)


  👤 techplex Accepted Answer ✓
The line "You are not expected to understand this" from Lions' Commentary on UNIX 6th Edition, https://en.m.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_...

Space shuttle style from kubernetes https://github.com/kubernetes/kubernetes/blob/ec2e767e593953...

Here is a whole list on stack overflow https://stackoverflow.com/questions/184618/what-is-the-best-...


👤 tcbasche
This one is a gem from docker:

https://github.com/moby/moby/blob/master/pkg/namesgenerator/...

>> if name == "boring_wozniak" /* Steve Wozniak is not boring


👤 trilinearnz
Not open source, but I do recall some searched-out expletives in the leaked Windows 2000 source code providing the Slashdot crowd with some amusement back in the day. Most were around having to kowtow to weirdness from certain vendors.