this post was submitted on 31 Jul 2025
450 points (97.5% liked)

Programmer Humor

27215 readers
1329 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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] savvywolf@pawb.social 31 points 3 months ago (2 children)

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.

[–] Skullgrid@lemmy.world 4 points 3 months ago

I had a visceral reaction to this because obviously the wish count should be decremented before the wish takes place.

Why? Shouldn't you decrement the limited resource the user has access to in case the thing you are doing fails?

[–] tyler@programming.dev 1 points 3 months ago

You’d need a check to make sure they don’t wish for something not allowed (like more wishes).