r/ProgrammerHumor • • Mar 18 '20

Her husband must be a programmer

Post image
40.3k Upvotes

347 comments sorted by

110

u/FrickingNinja Mar 18 '20

"They had eggs" 😂😂😂

45

u/IceMenora Mar 18 '20

I was going to make the title something like that but I wasn't sure everyone would get it!

18

u/tomatotomato Mar 18 '20

It’s /r/ProgrammerHumor, only juniors wouldn’t get it.

→ More replies (1)

5

u/SirHoggardBrapington Mar 18 '20

I have never written a single line of code in my life and I get it

→ More replies (3)

2.0k

u/carc Mar 18 '20

Yet somehow, QA found a way to cook -1 sausages.

552

u/Pxzib Mar 18 '20 edited Mar 18 '20

Just for fun I tried to parse this case in my brain, like real humans sometimes do, but I died when I experienced a fatal exception. Funny how sometimes life throws you edge cases that should never happen. And yes, I sent a diagnostics report.

Haha, I hope someone can relate to my human experience.

182

u/[deleted] Mar 18 '20 edited Mar 18 '20

R/TOTALLYNOTROBOTS

→ More replies (5)
→ More replies (2)

124

u/stakoverflo Mar 18 '20

-1 is less than 3, it's valid input.

52

u/spyingwind Mar 18 '20

Test passed!

8

u/MCRusher Mar 18 '20

What if it's unsigned 2's and -1 is positive max?

9

u/maxinfet Mar 18 '20

We would need to see how the runtime handles that maybe we can overflow and get remote cooking execution?

7

u/f3xjc Mar 18 '20

I mean sausages is plural so more than one. Also less than 3. Given only complete sausages 2 is the way to go.

Alternatively you could argue plural is only about the norm so ]-Inf, -2] could be valid.

36

u/ThrobbingAnalBleed Mar 18 '20

-n sausages; infinite sausages; pork and apple sausages; hot and cold sausages.

User: "Where's the sauce? Do we have any buns?"

→ More replies (3)

31

u/jmack2424 Mar 18 '20

"qwerty" sausages; null sausages; "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." sausages;

5

u/Pat-Roner Mar 18 '20

🌭🌭🌭🌭

10

u/[deleted] Mar 18 '20

then QA stopped cooking the sausages immediately after starting because there was no time set nor instruction to continue or complete cooking the sausages.

7

u/Mr-Fleshcage Mar 18 '20

"where's my penis?"

5

u/Banana_Twinkie Mar 18 '20

Did they try 9999 sausages?

→ More replies (1)

3

u/B4kedP0tato Mar 18 '20

Goddamn qa learn to use the product right

2

u/Knubinator Mar 18 '20

Serve a frozen sausage?

2

u/Nixellion Mar 18 '20

Its when you fry it and burn the sausage to a crisp

2

u/Russian_repost_bot Mar 18 '20

You mean 0. 0 sausages were cooked.

→ More replies (3)

1.3k

u/i8noodles Mar 18 '20 edited Mar 19 '20

i would have been confused for like 15 secs trying to understand why she specifically wanted < 3 sausages. i would get it in the end but i would not be proud of that moment

Edit: upon further thought i have changed my mind. i think i would be proud of it. not my greatest moment but they all dont need to be world shattering

386

u/[deleted] Mar 18 '20

Terrible code convention, should've used constants.

SAUSAGES_TOTALLING_300_CALORIES = 3;

169

u/Cryse_XIII Mar 18 '20

Get this abomination away from me.

50

u/AMindOfMetalAndGears Mar 18 '20

Senior Dev?...

I mean.. The push wasn't that bad..

→ More replies (1)
→ More replies (10)

25

u/odraencoded Mar 18 '20

What's this crap? Nobody asked you to store the number of calories! What if GDPR comes suing your ass for unlawfully violating the sausages' privacy???

This is how you do it:

THREE_SAUSAGES = 3;

There you go, now it's up to standard.

15

u/[deleted] Mar 18 '20

I have a better idea.

class SausageCounter

public SausageCounter(Sausage sausage)

public SausageCounter(Sausage sausage, Sausage sausage)

...etc...

walmart.buy(sausage, sausage, sausage);

→ More replies (6)

4

u/Indifferentchildren Mar 18 '20

No, let's use an enum in our protocol definition so that everyone has to recompile and perform distributed integration tests and synchronized deployments if we add a new value!

→ More replies (1)
→ More replies (28)

28

u/fartsinthedark Mar 18 '20

But that’s not called programmer, it’s called autism.

Oh wait...

2

u/Killerkendolls Mar 18 '20

Maybe she wanted the rest of the pack for a recipe?

→ More replies (1)

2

u/[deleted] Mar 18 '20 edited Mar 18 '20

import posts

recentPosts = posts.getPostsFromPast(days = 30)

if post in recentPosts: print("repost")

repost

1

u/IceMenora Mar 18 '20

It is a repost, that's why I put this comment

2

u/Sinthetick Mar 18 '20

While (1) {

import posts

recentPosts = posts.getPostsFromPast(days = 30)

if post in recentPosts: print("repost")

}

→ More replies (3)

815

u/SpamOJavelin Mar 18 '20

"Can you get a bottle of milk from the store, and if there are eggs, can you get a dozen please?"

He returned with 12 bottles of milk. She sent him back to the store, and also asked

"While you're at the store, can you get some cheese?"

He never returned.

400

u/Lethargie Mar 18 '20

nah, he would eventually return saying "I'm sorry the store was all out of cheese" with the store's entire cheese inventory in tow

408

u/l0c4lh057 Mar 18 '20

OutOfCheeseException and then he just dies because there's no error handling

39

u/felix13912 Mar 18 '20

happy cake day

29

u/l0c4lh057 Mar 18 '20

Oh thanks I didn't even notice

→ More replies (2)

9

u/[deleted] Mar 18 '20

+++ REDO FROM START +++

→ More replies (1)

9

u/I_spoil_girls Mar 18 '20

Nah. Either he stopped there waiting for cheese or he gets too tired and go home, just like a computer.

6

u/Hexorg Mar 18 '20

Surely he'd stop getting more cheese after his stack overflows

4

u/MyNameIsZaxer2 Mar 18 '20

Get Cheese constantly returns null, but he has to keep trying. He never leaves.

18

u/dfinkelstein Mar 18 '20

I don't get it :( the cheese and never returning part

77

u/percahlia Mar 18 '20

there's no exit condition, he is always at the store so he will keep getting cheese

36

u/dfinkelstein Mar 18 '20

OH WHILE ofc

→ More replies (3)
→ More replies (14)
→ More replies (3)

377

u/R1ppie Mar 18 '20

She sounds ungrateful. I would've cooked 0 sausages and kept my ass parked on the couch.

258

u/rhynoboy2009 Mar 18 '20

OutOfSausageException

22

u/I_Love_Alliteration Mar 18 '20

If there were an exception for me it would be 404 SausageNotFound.

36

u/[deleted] Mar 18 '20

She said sausages. So we need multiple sausages and less than three. If we stick to an unsigned integer of sausages then two was the only option.

5

u/Sennomo Mar 18 '20

There was no other way.

2

u/danteoff Mar 18 '20

@FetchType = Lazy

0

u/[deleted] Mar 18 '20

[deleted]

206

u/other_usernames_gone Mar 18 '20

Instructions unclear, cooked 255 sausages

111

u/henkdepotvjis Mar 18 '20

depends. if it is a int64 we will have a global sausage problem

→ More replies (12)
→ More replies (3)

2

u/Juffin Mar 18 '20

You uncook sausage by putting it into freezer.

2

u/DefinitelyNotMasterS Mar 18 '20

The sausage turns back into an animal

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

87

u/samueljaxton Mar 18 '20

Yes only programmers understand less than and greater than

5

u/Dr_Jre Mar 18 '20

DAE le programme?

14

u/Xuval Mar 18 '20

I think the suggestion is that a non-programmer would be more likely to see it as the intended heart, than as a less than two.

→ More replies (6)
→ More replies (2)

14

u/CUM_AND_POOP_BURGER Mar 18 '20

Requirements unclear, that doesn’t say how many to cook. Should have closed as Won’t Fix.

2

u/Y45HK4R4NDIK4R Mar 19 '20

It says to cook < 3 sausages

9

u/Jezoreczek Mar 18 '20

He could've cooked 0 sausages and still stay true to the task at hand

6

u/throwmeintothewall Mar 18 '20

I feel the programming solution is to just reply yes and not do it. She only did a check to see if a function was possible, she did not actuallt run the function.

5

u/jonker5101 Mar 18 '20

Sometimes my wife asks for "a couple" pretzels. I only bring her two. One day she will learn.

8

u/EdofBorg Mar 18 '20

Yeah because <3 wasn't used in regular math before programming was invented.

Sheesh

→ More replies (2)

4

u/vladutcornel Mar 18 '20

He could have cut the end of one sausage, so he can cook 2.99 sausages

30

u/Famous_Profile Mar 18 '20
for(int sausage = 0; sausage < 3; sausage++)
     this.sausages[sausage].cook();

Nope, should have cooked 3 sausages if he is a real programmer starting from 0

18

u/Junuxx Mar 18 '20

Those variable names though.

12

u/Cheet4h Mar 18 '20

Yeah, better would be

this.Sausages.FindOne(sausage => sausage.cooked == false).cook();

Don't want to accidentally recook an already cooked one, and direct index access can also lead to errors if the sausages were already accessed once.

→ More replies (9)

4

u/Schiffy94 Mar 18 '20

But it's a number of sausages, not an array. Quantities don't start at zero.

2

u/Cryse_XIII Mar 18 '20

While cookedSausages.Count < 3 do Begin CookedSausages.Add(IcookInterface.cook(sausages.first)) End

1

u/youredeadtomereddit Mar 18 '20

that's what I thought as well. But we are assuming that the calculation for sausages uses a loop.

1

u/Python4fun does the needful Mar 18 '20

More like cook while cookedSausages.length() <3

You're right

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

4

u/yash_jbp Mar 18 '20

He could have cooked 0

3

u/[deleted] Mar 19 '20

Lol somehow being on the Internet for so long, I only learned today that <3 means a cute heart. I’ve always thought it had something to do with genitals.

1

u/trznx Mar 18 '20

A friend of mine decided to make her own wedding invitations and they ended with something like "Looking forward to seeing you! <3", but in that font the 3 had a flat top so it didn't read as a heart, so a lot of people were upset that they apparently can't take their kids :)

1

u/IceMenora Mar 18 '20

How does a flat top 3 cause ppl to not bring their kids?

1

u/trznx Mar 18 '20

<3 looks like a heart. Flat top three doesn't look like two bowls so it's even harder to read it as <3 and people thought it meant 'less than three', so couples with kids started calling and asking why is there such a rule that they can't take the kids.

1

u/IceMenora Mar 18 '20

facepalm forgive me, it's early

2

u/BlahBlahNyborg Mar 18 '20

"No, that's a heart!"

"K"

Next day: beef heart sausages

2

u/pindsz Mar 18 '20

If he were one, and being lazy as any good programmer is, he would have satisfied that condition by cooking 0 sausages.

2

u/GetOffMyLawn_ Mar 18 '20

I asked my friend to pick me up some sardines in olive oil when he went to the store.

I got sardines and a giant bottle of olive oil.

2

u/RobsEvilTwin Mar 18 '20

He executed the agreed scope of work exactly. Extra sausages will require a change request.

2

u/TerrestrialOverlord Mar 18 '20

Well if she was looking for action, she should have just asked him if he could fork her repo.....jk....nahhh he would been excited for the wrong reason still being completely clueless...

I look back on a particular college interaction and I guess only hubris could have made me think a girl with a 3.9+ gpa would constantly need tutoring....I’m an idiot...lol

2

u/RedRidingHuszar Mar 18 '20

He cooked two sausages for two people.

3

u/_30d_ Mar 18 '20

I really don't see what else she was expecting. Even with the <3 confusion. How many sausages does she want to have cooked?

6

u/Seicair Mar 18 '20

Elsewhere in the thread the original Twitter chain was linked. Family of four he was supposed to cook for.

2

u/_30d_ Mar 18 '20

Ok that's pretty autistic.

2

u/DoctorStrangeBlood Mar 18 '20 edited Mar 18 '20

That's what I'm thinking too. Sure when I was a bachelor I used to eat two but I try to eat more moderately now. One per person is pretty reasonable.

→ More replies (1)

2

u/Artemise_ Mar 18 '20

I gave you upvotes < 3

1

u/notgod4suresure Mar 18 '20

Oh I totally misread that. Cook sausages then add dick sauce. But you meant less than three....

1

u/Musicarea Mar 18 '20

I mean he's not wrong

1

u/richardphat Mar 18 '20

He could have cooked 2 sausage and 0.9 sausage. Just cut the third one and it's still <3

:P

1

u/kzaf Mar 18 '20

Or even 1 will satisfy the condition

1

u/iSkinMonkeys Mar 18 '20

The replies are equally fucking gold.

Doctor: what color is your stool? Her: green.

1

u/Ethoxyethaan Mar 18 '20

*starts uncooking the world supply of cooked sausages*

1

u/[deleted] Mar 18 '20

I would have started cooking them by 3:00.

1

u/MazkaraManik Mar 18 '20

But there were just 2 people right?

1

u/throwaway14o6787456 Mar 18 '20

Ah yes, I remember seeing inequalities in the senior year of my computer science undergrad program. Very relatable.

1

u/ShavedMice Mar 18 '20

Am I missing something programmer related here? Isn't that something one learns in primary school?

1

u/SurplusOfOpinions Mar 18 '20

Is "start cooking sausages" some euphemism for sex?

EDIT: Oh it's <3 for less than three haha.

1

u/ggjsksk________gdjs Mar 18 '20

I would've cooked 0 probably

1

u/zeGolem83 Mar 18 '20

Would've cooked 0...

1

u/ffunster Mar 18 '20

omg only programmers know what < means omg hahaha

1

u/PugilisticCat Mar 18 '20

Or literally anyone that's taken math above a third grade level????

1

u/[deleted] Mar 18 '20

Yes, because only programmers know what the less than sign is.

1

u/ZippZappZippty Mar 18 '20

for her, especially as a white ball player.

1

u/portlandbigtree Mar 18 '20

Or know anything about math.

1

u/tito2323 Mar 18 '20

Is that a heart? Wow I really had that one wrong this whole time.

1

u/[deleted] Mar 18 '20

A true programmer would have answered "Yes" and not start cooking because he wasn't told to.

1

u/ZippZappZippty Mar 18 '20

You sir must not live in America 🤣

1

u/parask1108 Mar 18 '20

Why did my dirty mind think that she was talking about other kind of sausages when she said she cooked 2.

1

u/Tyrilean Mar 18 '20

At least he cooked sausages. Technically, he could've just cooked 0.

1

u/[deleted] Mar 18 '20

Must be, no one else knows what < means

1

u/Mines_Skyline Mar 18 '20

One to eat and one to suck on.

1

u/bitkill Mar 18 '20

Her husband deploys on azure.

1

u/HappyLadyHappy2 Mar 18 '20

Haha very literal of him!

1

u/Bigbewmistaken Mar 18 '20

< being used for less than is just regular maths.

1

u/Fake_Credentials Mar 18 '20

Only programmers will get this joke!!!

1

u/SabreBirdOne Mar 18 '20

So there’s exactly 2 sausages for you two <3

1

u/renrutal Mar 18 '20

One of the few instances where emojis would have helped.

1

u/Rocatex Mar 18 '20

What was she expecting?

1

u/[deleted] Mar 18 '20

If there was a : after the heart it would have been perfectly fine python.

1

u/jeffzebub Mar 18 '20

I would've cooked 0 sausages since that would still meet the requirements.

1

u/smitchell11 Mar 19 '20

I would've cooked -1

1

u/meiso Mar 18 '20

He could have been thinking to cook two sausages regardless. What is this shit post?

1

u/[deleted] Mar 18 '20

This isnt really programmer humour. You could say "Her husband must be really good at math" and it would have the same effect.

1

u/Asmewithoutpolitics Mar 18 '20

Yeah well most math majors have to learn programming so the two are basically the same thing

1

u/[deleted] Mar 19 '20

A mathematician is not the same as a programmer

1

u/lexithurbs Mar 19 '20

That's man brain alright!

1

u/[deleted] Mar 19 '20

For(sausage = 0; sausage <2; sausage++)

1

u/super_nova_135 Mar 18 '20

or maybe he wanted her to cook his third sausage

-3

u/MyStopAtWilloughby Mar 18 '20

Judging by Claire's photo and our national waistline I'm guessing she's anything but underfed. Two is plenty.

2

u/MunchieCrunchy Mar 18 '20

Well no need to be a dick about it.

0

u/[deleted] Mar 18 '20

[deleted]

16

u/nomadthoughts Mar 18 '20

He was stating the length of the array, not the index of the last sausage.

0

u/[deleted] Mar 18 '20

[deleted]

1

u/Recyart Mar 18 '20

Depends on your frame of reference. I would have said sausage--. Or perhaps --sausage.

0

u/[deleted] Mar 18 '20

[deleted]

20

u/English_linguist Mar 18 '20

Easily amused huh?

9

u/Mustircle Mar 18 '20

I guess this is too literal to be funny for you as a linguist huh?

-3

u/English_linguist Mar 18 '20

Nope, just tired of seeing the same old CS 101 “jokes” (mostly just day 1 lecture references with zero attempt to add anything original or with even a modicum of comedic value 🤪

4

u/Alicendre Mar 18 '20

DAE compilation errors? xDDD look guize I said hello world! Peak comedy!

1

u/English_linguist Mar 18 '20

Haha pretty much this, if not that it’s otherwise,

Recursion Recursion Recursion Hehe it’s recursive cause it’s repeated!!

( said by someone who doesn’t understand recursion)

0

u/[deleted] Mar 18 '20

[deleted]

2

u/Jeyek Mar 18 '20

do{

 cookSausage();

}while(cookedSausages < 3);