this post was submitted on 31 Jul 2025
427 points (97.3% liked)
Programmer Humor
25425 readers
980 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
I had a visceral reaction to this because obviously the wish count should be decremented before the wish takes place. Even though I can't think up a convincing technical argument for it.
You’d need a check to make sure they don’t wish for something not allowed (like more wishes).
Why? Shouldn't you decrement the limited resource the user has access to in case the thing you are doing fails?