LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-01-2016, 11:12 AM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084Reputation: 4084
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.

--jeremy
 
Old 02-01-2016, 11:16 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I didn't look through the source code myself, but this excerpt from Quake 3's is legendary:

https://en.wikipedia.org/wiki/Fast_i...ew_of_the_code
 
Old 02-01-2016, 12:35 PM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Kernel has many strange comments. Here's one from nf_nat_proto_unknown.c

Code:
Sorry: we can't help you; if it's not unique, we can't frob
            anything.
 
Old 02-01-2016, 01:40 PM   #4
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,112
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Quote:
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
From the gpl.txt of Ted 2.23

http://www.nllgg.nl/Ted/

That made me grin a little.
 
Old 02-01-2016, 02:28 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
I always liked the comment on the longjmp instruction at the heart of the kernel's scheduler:
/* You are not expected to understand this */
Don't know if it's still there.
 
Old 02-01-2016, 02:45 PM   #6
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
https://www.jwz.org/doc/censorzilla.html
 
Old 02-01-2016, 03:05 PM   #7
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Myk267 View Post
That's rich!
Poorgrammers sure do love the F bomb.

Last edited by Habitual; 02-01-2016 at 03:08 PM.
 
Old 02-01-2016, 03:32 PM   #8
BeaverusIV
Member
 
Registered: Oct 2004
Location: New Zealand
Distribution: Arch Linux 2010.05
Posts: 136

Rep: Reputation: 18
Quote:
//Dear future me. Please forgive me.
//I cant even begin to express how sorry I am.
I've written a few like this...
 
Old 02-01-2016, 04:10 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by BeaverusIV View Post
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.
 
Old 02-01-2016, 08:24 PM   #10
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 422
Blog Entries: 16

Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
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.
 
Old 02-01-2016, 08:42 PM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
The old yaboot message for ppc machines:
"Now blessing folder with holy penguin piss"
 
Old 02-01-2016, 10:02 PM   #12
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by Myk267 View Post
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.
 
Old 02-01-2016, 10:47 PM   #13
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
In some of my programs where an error condition should never happen, I surround an error message for the code that catches it with:

Programmer Malfunction ... Please report bug
 
Old 02-02-2016, 11:59 AM   #14
Rich Strebendt
LQ Newbie
 
Registered: Dec 2009
Location: Wheaton, IL
Distribution: CentOS 5.10
Posts: 22

Rep: Reputation: 7
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.
 
Old 02-02-2016, 12:09 PM   #15
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
Quote:
zarro boogs found
bugzilla return statement if 0 bugs in the database.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Coverity Report Finds Open Source Code Quality Beats Commercial Code jeremy Linux - News 0 07-30-2015 12:46 PM
how to insert a comment inside an inline assembly in a c source file? wringer Programming 3 12-06-2010 05:58 AM
The funniest thing ever :) coolb General 2 09-08-2007 02:52 PM
LXer: Comment of the Day -February 8, 2006 - OpenMFG isn't Open Source LXer Syndicated Linux News 0 02-08-2006 12:16 PM
LXer: Comment of the Day - January 10, 2006 - MS Open Source Point Man - a Dummy LXer Syndicated Linux News 0 01-10-2006 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration