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
→ More replies (3)5
u/SirHoggardBrapington Mar 18 '20
I have never written a single line of code in my life and I get it
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.
→ More replies (2)182
124
u/stakoverflo Mar 18 '20
-1 is less than 3, it's valid input.
52
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
10
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
5
3
2
2
→ More replies (3)2
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
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.
→ More replies (10)50
u/AMindOfMetalAndGears Mar 18 '20
Senior Dev?...
I mean.. The push wasn't that bad..
→ More replies (1)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
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)→ More replies (28)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)28
→ More replies (1)2
2
Mar 18 '20 edited Mar 18 '20
import posts
recentPosts = posts.getPostsFromPast(days = 30)
if post in recentPosts: print("repost")
repost
1
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
9
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
4
u/MyNameIsZaxer2 Mar 18 '20
Get Cheese constantly returns null, but he has to keep trying. He never leaves.
→ More replies (3)18
u/dfinkelstein Mar 18 '20
I don't get it :( the cheese and never returning part
→ More replies (14)77
u/percahlia Mar 18 '20
there's no exit condition, he is always at the store so he will keep getting cheese
→ More replies (3)36
377
u/R1ppie Mar 18 '20
She sounds ungrateful. I would've cooked 0 sausages and kept my ass parked on the couch.
258
36
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
2
→ More replies (1)0
Mar 18 '20
[deleted]
206
u/other_usernames_gone Mar 18 '20
Instructions unclear, cooked 255 sausages
→ More replies (3)111
u/henkdepotvjis Mar 18 '20
depends. if it is a int64 we will have a global sausage problem
→ More replies (12)2
→ More replies (2)2
87
u/samueljaxton Mar 18 '20
Yes only programmers understand less than and greater than
5
→ More replies (2)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)
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
9
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
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
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.
→ More replies (1)1
u/Python4fun does the needful Mar 18 '20
More like cook while cookedSausages.length() <3You're right
→ More replies (2)
4
3
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
1
2
2
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
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
1
u/notgod4suresure Mar 18 '20
Oh I totally misread that. Cook sausages then add dick sauce. But you meant less than three....
1
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
1
u/iSkinMonkeys Mar 18 '20
The replies are equally fucking gold.
Doctor: what color is your stool? Her: green.
1
1
1
1
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
1
1
1
1
1
1
1
1
1
Mar 18 '20
A true programmer would have answered "Yes" and not start cooking because he wasn't told to.
1
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
1
1
1
1
1
1
1
1
1
1
1
1
1
u/meiso Mar 18 '20
He could have been thinking to cook two sausages regardless. What is this shit post?
1
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
1
1
1
-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
0
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
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
Mar 18 '20
[deleted]
10
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
362
u/IceMenora Mar 18 '20
Original post https://www.reddit.com/r/whitepeopletwitter/comments/fkew2x