What is the Funniest Comment You've Ever Seen in Source Code?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
What is the Funniest Comment You've Ever Seen in Source Code?
The Official LQ Poll Series continues. This time around we're doing another free-form answer poll. What is the funniest comment you've ever seen in source code? If you have it, a link to the repository would be useful, but project and direct quote also work.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by BeaverusIV
I've written a few like this...
I have done similar:
Code:
default://since the contents of the char array have been validated previously...
cout<<"you can't program for toffy you idiot!"<<endl;//we should not get here
break;
I greped for f*** s**t and cr** in the kernel sources and there are plenty of occurrences.
That's rich!
Poorgrammers sure do love the F bomb.
I wasn't sure if I needed to provide context for my pick or not. It's not the swears that make it funny to me. It's the mental image of them writing that stuff while the pressure was on to make their big hit in the browser space. Maybe that's the wrong kind of funny.
There's some nerdy things roaming around the NetHack source, but nothing too side splitting.
I wasn't sure if I needed to provide context for my pick or not. It's not the swears that make it funny to me. It's the mental image of them writing that stuff while the pressure was on to make their big hit in the browser space. Maybe that's the wrong kind of funny.
I had the mental image of Linus "being Linus" on every one of them entries.
The old Electronic [Telephone] Switching Systems (ESSs) were programmed in a language specially designed for the unique hardware of which the systems were built (c. 1970). The instruction set was unique, with many of the instructions having both the apparent effect (such as adding the numbers in two registers) and side-effects that a programmer could use to good advantage. One day while looking at a particular program module the programmer newly assigned to maintain it noticed an instruction in the program that just did not seem to belong there. It was also the one instruction in the whole module that had a comment on it. The comment was a single word -- "subtle". No-one ever dared remove that line of code.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.