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

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] savvywolf@pawb.social 29 points 2 days 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.

[–] tyler@programming.dev 1 points 1 day ago

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

[–] Skullgrid@lemmy.world 4 points 2 days 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?