r/shittyprogramming • • Apr 25 '15

Middle school programming

Post image
368 Upvotes

29 comments sorted by

5

u/c3534l Apr 25 '15

Those jokes are fun when you first start programming, but they get pretty old after a while. They start to especially look stupid if you a write a program that someone might need to look at in 10 years time and the joke is already dated, old, and not clever when you put it in.

4

u/Zaiush Apr 25 '15

Not mine, a friend's.

61

u/jfb1337 Apr 25 '15

Make sure you have a variable called D and often need to check if it's 8:

if(8==D){
 ... 
} 

37

u/SkaKri Apr 25 '15
var ᗡ = 8.1;
if(~~ᗡ===8){
    console.log('heh.');
}

7

u/wonderb0lt Apr 25 '15

35

u/subredditChecker Apr 25 '15

There doesn't seem to be anything here


As of: 15:39 04-25-2015 UTC. I'm checking to see if the above subreddit exists so you don't have to!

1

u/u1tralord Apr 29 '15

This is my new favorite bot

2

u/[deleted] Aug 16 '15

I know this is a 3 month old comment, but please look up penis.js

96

u/jewdai Apr 25 '15 edited Apr 25 '15
SELECT * FROM SLASH_R_IM_13_AND_THIS_IS_FUNNY
WHERE NUTS LIKE 'DEEZE'

94

u/the_omega99 Apr 25 '15
> SELECT * FROM DEEZE
| WHERE NUTS LIKE 'DEEZE'
|
| ^C
| ^D
| q
| exit
| HALP

37

u/outadoc Apr 25 '15

Here:

;

21

u/zopiac Apr 25 '15

I'm getting flashbacks...

10

u/jewdai Apr 25 '15

VIM tends to have that affect on people

23

u/paincoats Apr 25 '15
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C
^C^C^C^C
^Z

$ killall -KILL vi
$ su
Password:
# echo 'DIE' > /bin/vi
# echo 'true story'
true story

1

u/__no_preserve_root Apr 26 '15

$ sudo ln -s /bin/rm $(which vi)

1

u/Reil Apr 25 '15
SELECT * FROM SLASH_R_SLASH_IM_13_AND_THIS_IS_FUNNY
WHERE NUTS LIKE 'DEEZE'

ftfy

12

u/drunkadvice Apr 25 '15

one of the kids in my middle school class wrote the program below when BASIC was a thing...

10 print "eat a dick"
20 goto 10

I like to think I was more mature than that, but it's almost a rite of passage.

8

u/[deleted] Apr 25 '15
int powerLevel = 9001;
while(powerLevel > 9000)
{
}

9

u/[deleted] Apr 25 '15

I'm a high school sophomore and I recently had to make a simulation of dice rolling. My variable names were deesix and deeznuts.

2

u/u1tralord Apr 29 '15

As a high school junior last year, my friend always called his variables "shit" "crap" "spaghetti", or some variant of the 3 combined. It was really fun to watch the teacher help debug his code

1

u/Diarum Apr 25 '15

This is accurate af, my two nephews say "Dese nuts" all the time.

1

u/teerre Apr 26 '15

Ok, now I feel dumb, not sure if I don't understand. Maybe because english is not native language.

Is it "this is nuts"?

2

u/UnchainedMundane Apr 29 '15

Deez nuts = these nuts

Nuts being slang for testicles.

1

u/Lars34 Apr 25 '15

Deez pretzels are making me thirsty.

-2

u/filmdc Apr 25 '15

I have to admit I do this sort of thing all the time

5

u/banned_accounts Apr 25 '15

I think it's good to have some fun every now and then. I also think "deez nuts" is a dated, unfunny joke, so there should be some discretion.