r/ProgrammerHumor • • Jul 20 '17

What people think coding is...

Post image
35.4k Upvotes

811 comments sorted by

View all comments

1.2k

u/X-Craft Jul 20 '17

type some stuff, the stuff does other stuff, you go to the next thing

But that is what happens

Although the other stuff is not necessarily the stuff it's supposed to do...

413

u/the_prepster Jul 20 '17

In fact it's almost GUARANTEED NOT TO BE.

265

u/pickausernamehesaid Jul 20 '17

And if it is, you stare blankly at the screen and then delayed fistbump the air. Then, as your hand is coming down, a doubt forms in the back of your mind as you begin to question whether or not it actually does work or if it just seems to work now and will break for literally everyone else.

85

u/Jerrrrrrrrry Jul 21 '17

Honestly, how did that shit work in the first place?

117

u/akatherder Jul 21 '17

Who wrote this mess?

Checks author.

Oh...

40

u/Retbull Jul 21 '17

Ha fucking git blame this assho... shit.

git rebase -i HEAD ~12

37

u/StormTAG Jul 21 '17

"No bugs, huh? This can't be what the client actually wants. Where are those specs?"

27

u/Spirckle Jul 21 '17

I once interviewed a candidate that said he had written over a million lines of code and never had a bug. He didn't get the job. To this day I wonder if maybe I had interviewed this supercoder who could foresee all the data conditions that might hose his software, or foresee how the customer would change their minds and as soon as they did the code would morph into the new behavior.

16

u/[deleted] Jul 21 '17

He coded an advanced AI that rules the world but we don't know it, the only way it can stop itself being found out is by creating bugs for coders to look for to throw them off its trail.

11

u/oorza Jul 21 '17

Maybe he meant he had never had a bug in his apartment and was trying to casually mention his cleanliness so you'd think he was a good officemate.

7

u/onthefence928 Jul 21 '17

i read that 'boast' as "i dutifully copied dozens of tutorial projects without screwing up a single character!, what do you mean 'what debug tools do you use?'"

3

u/Montuckian Jul 21 '17

Doesn't matter. Works on my machine!

2

u/FPMC4172 Jul 21 '17

I once made a program that would only work for my computer because I made the mistake of basing a timer on my computer's speed of computing it so when I tried it on another computer... It wasn't pretty.

13

u/prest0G Jul 21 '17

My code is only deterministic in that I know it'll behave in an indeterminate manner

18

u/flukus Jul 21 '17

Sometimes it does exactly what it should. Then you really get suspicious.

10

u/JuhaJGam3R Jul 21 '17

Had this feeling a little while back when decided to redo hello world.

std::cout << "Hello World!";

Output:

Hello World!

My mind: why did this work? It's broken in some way I know it

4

u/flukus Jul 21 '17

Did you forget the "/n"? Or is that not needed with cout?

→ More replies (1)
→ More replies (2)

2

u/posts_lindsay_lohan Jul 21 '17

You have a contract with the machine that if your program is not absolutely one-hundred-percent perfect, it has full license to do the worst possible thing that it's capable of doing.

1

u/chemicalcomfort Jul 21 '17

no no. It's nearly guaranteed to do exactly what you tell it to. You just have no guarantee the monkey at the keyboard knew what he was doing when he started telling the computer what to do.

1

u/Videoboysayscube Jul 21 '17

Except for that time it is, but you have no idea why.

1

u/[deleted] Jul 21 '17

Are you experiencing other stuff in your programs? Tired of other things impacting your obviously immaculate work?

Talk to your project manager about Haskell. Get rid of the other stuff forever.

2

u/kuzuboshii Jul 21 '17

Its the you go on to the next thing that is wrong.

More like, you type some stuff, it does other stuff. repeat. Run out of time and say thats good enough.

1

u/dc4m Jul 21 '17

as a haskell programmer, the stuff doing other stuff generally doesn't happen without a lot of effort...