This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-04-15 20:49:22

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Programming Jokes

Some programming humor I found on the web, I'd appreciate any of yours!


Many of these jokes go beyond Scratch-based knowledge, but, as some of this community knows other languages, I thought I'd include those as well  smile

The computer is mightier than the pen, the sword, and usually the programmer.

"The primary purpose of the DATA statement is to give names to constants; instead of
referring to pi as 3.141592653589793 at every appearance, the variable PI can be given
that value with a DATA statement and used instead of the longer form of the constant.
This also simplifies modifying the program, should the value of pi change."
- FORTRAN manual for Xerox computers

"Never put off until run time what you can do at compile time."
- David Gries, in "Compiler Construction for Digital Computers", circa 1969.

Any sufficiently advanced bug is indistinguishable from a feature.

Programming is 10% science, 25% ingenuity and 65% getting the ingenuity to work with the science.

There are two ways to write error-free programs; only the third one works.

You never finish a program, you just stop working on it.

Someone else's shell script I saw at work today was extensively commented, including this gem of non-information.

export PATH # Export path

I was helping a friend with some code. In the code, I found the line:

x = x;

and removed it. I made some further changes and send the code back to him. He told me he still had errors. So he sent me his code again, and again I found the same line. I asked him why he kept putting that in there, and he replied, "So x doesn't lose its value."

In college, I worked as a teaching assistant for an introductory programming language. For most of the people in the class, this was probably their first and only programming class.

One day, I was doing program code reviews with a handful of students. This one girl gave me her code, and, after looking at it, I asked why she had repeated a certain line twice:

let x = 7;
let x = 7;

She said, "Just in case it didn't get set right the first time."

When I was studying programming, one of my classmates was having serious troubles with his program. When he asked me for help, I leaned over his screen and saw all of his code in comments. The reason: "Well, it compiles much faster that way."

While working on a programming project in highschool with a friend, I mentioned to him that if he really wants to name his variables things like x, xx, and xx2, he should at least put comments saying what they're used for.

The next time I looked over his shoulder, I saw this:

int x; // x is an int

Days ago I had to fix a bug into our software. The person that originally wrote the module quit, so I had total control of the source code. I totally rewrote half of the code when I found things like:

switch (k) {
    case 9: printf("9\n");
    case 8: if (k==8) printf("8\n");
    case 7: if (k==7) printf("7\n");
    // and so on...
}

I wondered why he put the "if" clauses, but then I noticed that none of the cases has its "break" statement, so if he found that if k was 9, the program printed 9, 8, 7, etc. So I think he added the "if" clauses to fix that behavior.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#2 2012-04-15 21:03:30

trinary
Scratcher
Registered: 2012-01-29
Posts: 1000+

Re: Programming Jokes

I literally laughed at them.

Last edited by trinary (2012-04-15 21:30:40)


http://trinary.tk/images/signature_.php

Offline

 

#3 2012-04-15 21:07:27

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Programming Jokes

LOL those were all great.

Programming is .2 language, .8 programmer, and .0000000000001 dealing with computerized numbers.

Offline

 

#4 2012-04-15 21:10:01

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Programming Jokes

maxskywalker wrote:

Programming is .2 language, .8 programmer, and .0000000000001 dealing with computerized numbers.

lol

And David Gries was a genius.  The longer you work on a program before running it, the more errors you'll have.  The more errors you have, the less likely you are to finish the program!

Last edited by MoreGamesNow (2012-04-15 21:11:14)


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#5 2012-04-15 21:25:42

CheeseMunchy
Scratcher
Registered: 2008-10-13
Posts: 1000+

Re: Programming Jokes

Ha!
lol
I only got some of them though.  tongue


6418,

Offline

 

#6 2012-04-15 22:51:27

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Programming Jokes

CheeseMunchy wrote:

Ha!
lol
I only got some of them though.  tongue

Believe me, while looking for these on the web, a number of jokes escaped me too.


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#7 2012-04-15 22:57:46

Laternenpfahl
Scratcher
Registered: 2011-06-24
Posts: 1000+

Re: Programming Jokes

The 2nd one is...
Ummm...

AWESOME!!!


http://i46.tinypic.com/6yd4c0.png

Offline

 

#8 2012-04-15 23:49:52

MrMonk999
Scratcher
Registered: 2011-12-17
Posts: 500+

Re: Programming Jokes

How many Programmers does it take to change a lightbulb?
It's a hardware problem; it can't be done.

Last edited by MrMonk999 (2012-04-15 23:51:03)


http://i.imgur.com/CAMJe.png

Offline

 

#9 2012-04-16 04:11:07

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Programming Jokes

lol  at these.  big_smile

Offline

 

#10 2012-04-16 09:52:32

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Programming Jokes

These are great


Posts: 20000 - Show all posts

Offline

 

#11 2012-04-16 10:10:59

mewkid
Scratcher
Registered: 2010-08-16
Posts: 100+

Re: Programming Jokes

LOL'd at every one!  tongue

Offline

 

#12 2012-04-16 11:23:44

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Programming Jokes

trinary wrote:

I literally laughed at them.


Why

Offline

 

#13 2012-04-16 11:34:23

blazerv82
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Programming Jokes

ha


Pretty Hate Machine, Broken, Closer To God, The Downward Spiral, Further Down The Spiral, The Perfect Drug, The Fragile, And All That Could Have Been, With Teeth, Year Zero, Y34RZ3R0R3M1X3D, Ghosts I-IV, The Slip, Pretty Hate Machine 2010

Offline

 

#14 2012-04-16 13:22:11

JinnOfTheGale
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Programming Jokes

I got one:

There are 10 types of people in the world; those who know binary, and those who don't.


http://thisisagoodbook.com/images/olympicsbannersig.png
Click above to play!

Offline

 

#15 2012-04-16 13:27:17

Alternatives
Scratcher
Registered: 2010-09-16
Posts: 1000+

Re: Programming Jokes

i didn't understand a single one


http://i42.tinypic.com/98vmms.png
Well if you wanted honesty, that's all you had to say. I never want to let you down or have you go, it's better off this way.

Offline

 

#16 2012-04-16 15:13:45

GameHutSoftware
Scratcher
Registered: 2010-04-24
Posts: 1000+

Re: Programming Jokes

i lawled at #6 and #12


Lurking more than posting, but still here.

Offline

 

#17 2012-04-16 15:30:11

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: Programming Jokes

"You know the formula: comedy = tragedy + time." GLaDOS

Offline

 

#18 2012-04-16 15:54:28

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: Programming Jokes

Check out my sig for mine!


http://www.blocks.scratchr.org/API.php?action=text&string=I'm_on_vacation!&xpos=155&ypos=90&font_size=30&bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#19 2012-04-16 16:33:00

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Programming Jokes

MrMonk999 wrote:

How many Programmers does it take to change a lightbulb?
It's a hardware problem; it can't be done.

Oh, so that's the problem.  lol


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

#20 2012-04-16 17:40:30

maxskywalker
Scratcher
Registered: 2008-01-27
Posts: 1000+

Re: Programming Jokes

GameHutSoftware wrote:

i lawled at #6 and #12

12 is hilarious.

Offline

 

#21 2012-04-17 03:11:21

NeilWest
Scratcher
Registered: 2010-01-06
Posts: 1000+

Re: Programming Jokes

PullJosh wrote:

Check out my sig for mine!

I thought it was 1 in 10 people understand binary. The other 2 don't.

Offline

 

#22 2012-04-17 03:19:00

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Programming Jokes

I don't get #2  tongue

A lot of them are hilarious tho  lol


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#23 2012-04-17 07:28:07

PullJosh
Scratcher
Registered: 2011-08-01
Posts: 500+

Re: Programming Jokes

NeilWest wrote:

PullJosh wrote:

Check out my sig for mine!

I thought it was 1 in 10 people understand binary. The other 2 don't.

I saw what my sig was (but with ten and the first to things). Maybe there are both!  hmm


http://www.blocks.scratchr.org/API.php?action=text&string=I'm_on_vacation!&xpos=155&ypos=90&font_size=30&bgimage=http://imageshack.us/a/img339/7215/sspeechsigapiforwords.png

Offline

 

#24 2012-04-17 07:31:17

Spy-TF2
Scratcher
Registered: 2011-09-12
Posts: 100+

Re: Programming Jokes

NeilWest wrote:

"You know the formula: comedy = tragedy + time." GLaDOS

big_smile
I love that line. XD

Last edited by Spy-TF2 (2012-04-17 07:31:24)


http://media.tumblr.com/tumblr_m2d6wy6SAh1rn0mf1.pnghttp://fc07.deviantart.net/fs42/f/2009/117/3/c/Thrax_Motivation_by_HoneyAppleNinja.jpg

Offline

 

#25 2012-04-17 13:53:27

MoreGamesNow
Scratcher
Registered: 2009-10-12
Posts: 1000+

Re: Programming Jokes

jji7skyline wrote:

I don't get #2  tongue

A lot of them are hilarious tho  lol

"This also simplifies modifying the program, should the value of pi change."


http://images2.layoutsparks.com/1/218929/rubiks-cube-animated-rotating.gif
"Cogito ergo sum" --  I think, therefore I am

Offline

 

Board footer