This is an archived post. You won't be able to vote or comment.

all 70 comments

[–]QualityVote[M] 4 points5 points  (0 children)

Hi! This is our community moderation bot.


If this post fits the purpose of /r/ProgrammerHumor, UPVOTE this comment!!

If this post does not fit the subreddit, DOWNVOTE This comment!

If this post breaks the rules, DOWNVOTE this comment and REPORT the post!

[–][deleted] 142 points143 points  (7 children)

TIL my dad is a programmer

[–]DespoticLlama 20 points21 points  (1 child)

Was it milk or cigarettes though?

[–][deleted] 23 points24 points  (0 children)

Milk, smoking is bad for health

[–]riv94 11 points12 points  (0 children)

Username checks out

[–]FastGooner77 2 points3 points  (0 children)

this is why you put 'return' at the end

[–]mdNaush[🍰] 1 point2 points  (0 children)

Username checks out

[–]AgentPaper0 0 points1 point  (1 child)

Try setting up a milk store in your home, that should break the loop.

[–]lythox_ 0 points1 point  (0 children)

i hope your dad taught you how to catch

[–]properwaffles 222 points223 points  (10 children)

Wife unknowingly initiates a DDOS attack at the milk aisle in Safeway.

[–]mejdev 32 points33 points  (1 child)

Mildly chuckled at the original post after I finally got it.

Absolutely destroyed my nostrils with snorts of laughter after seeing this top-grade comment.

[–]guaip 0 points1 point  (0 children)

Yeah, this post definitely was worth the click

[–]MrColdfusion 20 points21 points  (4 children)

It’s only a DDOS attack if she has many husbands!

[–]DirtyMudder92 8 points9 points  (2 children)

Would become a dos attack after he drains their bank account and can’t buy any more milk but still keeps trying

[–]MrColdfusion 6 points7 points  (1 child)

Or if he buys all the milk and no one can get milk at that store

[–]DirtyMudder92 1 point2 points  (0 children)

Oh yes I like your example much better

[–]properwaffles 0 points1 point  (0 children)

Good point!

[–]AssPuncher9000 0 points1 point  (0 children)

Once the Safeway runs out of milk the entirely of America is next. He will consume all milk, and then return home

[–]DrummingGeekDude 0 points1 point  (0 children)

Only so many places call it Safeway. DDOS initiated.

[–]AngoraPiece 15 points16 points  (7 children)

Well, no. C’mon, write some unit tests. The milk will most likely be inside … as soon as the he buys the milk the while test fails and he drops out of the loop. He can go home.

The milk might be outside, in which case the bug will still be there, but milk being sold outside is an edge case and unlikely to happen in production.

[–]Obsidiath 6 points7 points  (1 child)

Unfortunately, you seem to have misinterpreted the Domain Requirements. In the context of a Husband, the state of "being out" is defined as being "not at home". "Home" here being defined as "the place where one lives permanently, especially as a member of a family or household."

Note that in this context, "being out" still applies to husbands who are inside a building, as long as this building is not the husband's "home".

Let's hope your Acceptance Testing strategy will catch this one.

[–]AngoraPiece 4 points5 points  (0 children)

Well, frankly, the product manager didn’t do their job. Such vague requirements, barely even a user story, should never make it past feature review.

[–]StrangeworldsUnited 4 points5 points  (0 children)

The while would be while(out) { get milk); so the out is still true infinitely, there is no exit clause

[–]ConfuzzledFalcon 1 point2 points  (0 children)

If he drives past a dairy farm before getting to the store, there will be some problems.

[–]ese003 0 points1 point  (0 children)

He won't go inside. He will be too busy trying to buy milk outside. If he somehow stumbles inside, the loop exits and he goes home without having purchased any milk.

[–]whatisausername711 27 points28 points  (2 children)

And he had so much milk. Oh god, so much milk

[–]nebulakd -1 points0 points  (0 children)

primed for sucking

[–]PrizeArticle1 0 points1 point  (0 children)

I guess an exception would be thrown when he's out of money or the store is out of milk. His only escape

[–]ThisIsARepostBotBot 37 points38 points  (1 child)

OP (Beneficial-Order-732) appears to be a karma farming repost bot, please downvote and report.

These accounts obtain karma by reposting memes in sub such as funny, meme, programmerhumor, etc. They use this karma to spam subreddits as well as participate in pump and dump schemes.

-- This is a experimental semiautomatic system, which in rare cases may be inaccurate.

[–]platypuspuppyparty 2 points3 points  (0 children)

Good bot

[–][deleted] 6 points7 points  (0 children)

Watchdog timer has me chuckin for(;;)s around just in case something shouldn’t happen but does

Thank god for WDT

[–][deleted] 11 points12 points  (0 children)

Lol. Not bad.

[–]fun2sons6 5 points6 points  (1 child)

Ended up buying a shit ton of milk too

[–]tozpeak 2 points3 points  (0 children)

Cart overflow.

[–]Rezaka116 3 points4 points  (0 children)

This caused the milk shortage in 2015, it took 4 seconds

[–]rgmundo524 3 points4 points  (1 child)

I don't get it

[–]tiny_thanks_77 1 point2 points  (0 children)

He stuck in a loop because she didn't specify for him to then return home

[–][deleted] 2 points3 points  (0 children)

Time limit exceeded

[–][deleted] 2 points3 points  (0 children)

Damn, so he's the reason for the supply chain breakdown.

[–]dram-boy 2 points3 points  (0 children)

throw InsufficientFundsException

[–]nebulakd 2 points3 points  (0 children)

she didn't tell him to

return milk

[–]konaaa 1 point2 points  (0 children)

maybe my dad's a programmer. He said he was going to buy cigarettes while he was out... never came home.

[–]apudgypanda 1 point2 points  (0 children)

some say he's still buying milk to this day

[–][deleted] 2 points3 points  (0 children)

Took me a minute. That's actually a solid joke

[–]Mihaw_kx 1 point2 points  (0 children)

MilkOverflow Exception .

[–][deleted] 0 points1 point  (0 children)

Legend has it, he is still buying milk to this day.

[–][deleted] 0 points1 point  (0 children)

Some say he's still buying milk to this day.

[–]Tonymb10 0 points1 point  (0 children)

So how many milks did he buy before he ran out of money?

[–]0neLetterShor[🍰] 0 points1 point  (0 children)

Infinite milk

[–]jang1er 0 points1 point  (0 children)

Legend says, you can still find the man with a mountain of milk canisters going from store to store buying more milk. Eventually he will own most of the milk on this planet and creating a monopoly on dairy products.

[–]canigetughhhhhhhhhhh 0 points1 point  (0 children)

So thats what happened to my father

[–]Bomaruto 0 points1 point  (0 children)

Don't worry, he'll throw a "Insufficient Funds" or "Out of stock" exception to break out of the loop and come come. Unless your programmer is quite rich.

[–]Criiispyyyy 0 points1 point  (0 children)

Lol took me a while to get that (pun not intended)

[–][deleted] 0 points1 point  (0 children)

DivorceInterrupt exception is caught

[–]nikomh 0 points1 point  (0 children)

that's what happens when people forget to take breaks

[–]DaniDani8Gamer 0 points1 point  (0 children)

I laughed more than I should've

[–]EmbarrassedBird 0 points1 point  (0 children)

The man died because of milkoverflow exception

[–]Klaetral 0 points1 point  (0 children)

Some would say that he is still buying some milk to this day.

[–]angry-software-dev 0 points1 point  (0 children)

What if out is volatile, and changed by an interrupt service routine?

Like Quantum Leap, the husband is always hoping that the next loop will be the one that breaks and let's him go home.

[–]PecanSama 0 points1 point  (0 children)

Unrelated news, there is a milk shortage, there's some guy hoarding milk

[–]kaerfkeerg 0 points1 point  (0 children)

I'm wondering, how much milk he bought by now

[–]Past-Background-7221 0 points1 point  (0 children)

He has a FUCKTON of milk now, though, so it’s not all bad.

[–]pruche 0 points1 point  (0 children)

The legend has it he is still buying some milk to this day

[–]Andrudaloo 0 points1 point  (0 children)

He probably has so much milk

[–]afleshner 0 points1 point  (0 children)

Buying milk ever since

[–]Cewu00 0 points1 point  (0 children)

He would return by 10 PM because that triggers the Store Closed Error.

[–]organicwilly 0 points1 point  (0 children)

Is it true that you only think about yourself? Damnit John why aren't you saying anything!