5 ms·
Ask HN: 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.)
- trilinearnz 6y agoNot 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.
- tcbasche 6y agoThis one is a gem from docker: https://github.com/moby/moby/blob/master/pkg/namesgenerator/names-generator.go#L844 https://github.com/moby/moby/blob/master/pkg/namesgenerator/... >> if name == "boring_wozniak" /* Steve Wozniak is not boring
- quickthrower2 6y agoWow thanks for pointing me to that line of code. I see those names everywhere, e.g. on Netlify
- techplex 6y agoThe 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_6th_Edition,_with_Source_Code https://en.m.wikipedia.org/wiki/Lions%27_Commentary_on_UNIX_... Space shuttle style from kubernetes https://github.com/kubernetes/kubernetes/blob/ec2e767e59395376fa191d7c56a74f53936b7653/pkg/controller/volume/persistentvolume/pv_controller.go https://github.com/kubernetes/kubernetes/blob/ec2e767e593953... Here is a whole list on stack overflow https://stackoverflow.com/questions/184618/what-is-the-best-comment-in-source-code-you-have-ever-encountered https://stackoverflow.com/questions/184618/what-is-the-best-...
- herodoturtle 6y agoThis was awesome thanks for sharing.