this post was submitted on 13 Jan 2026
84 points (88.9% liked)
Programmer Humor
28409 readers
1554 users here now
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.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The joke is bad because the husband is supposed to bring seven gallons of milk. Since the egg condition is checked after he already got one.
No no, the imperative "get six" overrides the previous "buy a gallon of milk" if the "they have eggs" condition is met.
"get six" implies
x === 6notx = x + 6, that would be "get six more"The real problem is that "buy" was only specified in the first case. Because the conditional was met, he should get six gallons of milk but not buy them.
Now just how did he procure the rest of the 5, is a mystery.
Omg, youβre so right. I didnβt read it that way until you pointed that out.