"... and if they have eggs, get a dozen, " she added.
He later came home with 12 gallons of milk.
"Why'd you get so much milk!?!" his wife asked.
He replies, "THEY HAD EGGS!"
A software developer's wife asked him to get a gallon of milk from the store
3 months ago by RacerX to c/programmer_humor
"... and if they have eggs, get a dozen, " she added.
He later came home with 12 gallons of milk.
"Why'd you get so much milk!?!" his wife asked.
He replies, "THEY HAD EGGS!"
and when he returned empty-handed he answered "I then set the bread back down"
Obviously someone else then took the bread, the only way to break the cycle.
"Some say he's still there picking up bread to this day..."
The comma operator would like to have a word with you. I see a pause after eggs, 12 gallons it is
Doesn't change it.
Wife adds 1 gallon of milk to shopping list;
Wife adds ( eggs, dozen) gallons of milk to shopping list;
Shopping list has 1 gallon and a dozen gallons for a total of 13 gallons.
"Buy two forks. Buy two forks for every fork you buy."
:(){ :|:& };:
Aahh, the ol' botox lips, raised monobrow, grumpy face and the two toothed irony wiking emoticons.
So get a gallon of milk, and IF they have eggs, get a dozen (gallons of milk). Basically this is an if statement meaning if X is true, do this. Well normally we think get a dozen would be get 12 eggs, but because "have eggs = true" that meant get 12 gallons of milk. The opposite would've been eggs=false and he'd come home with 1 gallon.
I'm not a Dev so I can't write the code better, but I understand the language enough
NP. We don't even use dosens in America so I learned something new!
people say tens for multiples of 10
@programming.dev
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
go to feed...
@programming.dev
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
go to feed...
Alternate version:
"While you're there, pick up some bread," she added. He never returned.
save