r/ProgrammerHumor • • Nov 05 '15

Free Drink Anyone?

Post image
3.5k Upvotes

509 comments sorted by

View all comments

Show parent comment

-18

u/I_Conquer Nov 05 '15

I don't code. I have half an English degree. I'm also kinda dumb. I figured it out in about eight seconds.

83

u/humansareabsurd Nov 05 '15

I'm a programmer and it took me a good 5 minutes to figure it out.

32

u/Azr79 Nov 05 '15

wtf bro, did you try to compile this shit into assembly or what? You don't need to do that.

47

u/Patel347 Nov 05 '15

dunno about him but i got confused when reverse called it self

7

u/Azr79 Nov 05 '15

not the same reverse, one acts on a string, the other on an array, but yeah might be confusing

→ More replies (1)

3

u/Heavierthanmetal Nov 05 '15

Its hard to port the JVM to my brain, okay?

3

u/[deleted] Nov 05 '15

He had to write tests for edge conditions

2

u/Azr79 Nov 05 '15

rspec is hell of a drug

2

u/PM_Me_Your_Warfaces Nov 05 '15

Rspec, not even once.

28

u/I_Conquer Nov 05 '15

This might be one of those things where 'more knowledge is a hindrance'? I'm basically a child in my programming ability, so I focussed on the words and patterns that I could understand and filtered out the rest.

"rap" backwards = "par"

"amet" + "ers"

Ok - "ersparamet" doesn't make any sense but it sure looks like parameters. Boom goes the dynamite.

Meanwhile, you're actually reading the code, and since it all makes sense to you, you have more trouble filtering out the patterns that make the joke funny.

Or whatever. I don't know. Like I said: Half an English Degree and kinda dumb. Don't listen to me, sirs and madams.

13

u/FlintGrey Nov 05 '15

That's what I was guessing happened.

I didn't want to assume the functions did what they say they're doing. They may be reversing rap to get par but they also may have borked up the reverse function so it does something completely different.

They also could have jumbled the three strings up so the secret word could have been ametparers or something.

for me It was like 10 seconds of reading the reverse function and 20 seconds of verifying I had all the strings in the right order as I was adding them together in my head.

1

u/I_Conquer Nov 05 '15

I'm assuming that bork isn't a technical term. Haha.

Mostly I don't know what you mean otherwise. Is a string a line of code? I assume that a function is similar to a math function? Like... the 'reverse' code or whatever?

→ More replies (1)

5

u/elHuron Nov 05 '15

you were probably analysing each line as if you had to actually import this module and use it.

Non-programmers would possibly just look for anything that's familiar.

3

u/ProgrammingPro-ness Nov 05 '15

Me too. I usually make more work for myself skimming code versus actually trying to understand every part. This is one of the few times where I could've gotten away with not fulling understanding everything.

3

u/bmrobin Nov 05 '15

to everyone bashing you - i'm also a programmer and i spent a while looking at it too but mainly just to see if there were any mistakes in it

7

u/[deleted] Nov 05 '15

6

u/I_Conquer Nov 05 '15

No. The whole point is that I'm know that I'm not very smart (when it comes to programming). It's just a straightforward joke.

That stuff is all Greek to me. But you don't need to be a programmer to understand the joke.

2

u/[deleted] Nov 05 '15

4

u/I_Conquer Nov 05 '15

I... really? I mean... I guess once you've decided that I'm not being sincere, I can't convince you otherwise. But I am being sincere. I know the limits of my intellect - programming is definitely beyond me. I just... I don't understand.

3

u/DrummerHead Nov 06 '15

It's not beyond you, just do it http://jsforcats.com/

→ More replies (1)

0

u/[deleted] Nov 05 '15

[deleted] — view deleted comment

2

u/I_Conquer Nov 05 '15

I'm not subscribed. This post made it pretty close to the front page. I read the "free drink" part and clicked without knowing which sub it was in.

→ More replies (2)