this post was submitted on 31 Jul 2025
428 points (97.3% liked)
Programmer Humor
25425 readers
988 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
Wouldn't it depend on the order of operations, you'd think even vibe coding a genie would still have the sense to lower the counter before granting the wish.
So logically
Wishes = 3
Make wish count zero.
*wish used, wish count 2
Wish applied, wish count 0
It seems logical to decrement after the wish is granted, imo. Just causes issues in this particular case...
Dunno, I know enough duplicate exploits in games to know giving the effect then reducing the item, is a pretty common source of duplication hacks/bugs.
I guess it comes down to which is the designer is more afraid of happening, the chance of a wish being expended but not granted, or granted without expending.
Then again based on disney's aladin, tricking the genie into rescuing him without using a wish, it does seem practical to assume that the genie errors on the side of granting without expending.