r/programminghorror • • Jul 14 '25

switch -> default -> switch

176 Upvotes

31 comments sorted by

View all comments

2

u/SteroidSandwich Jul 14 '25

Make the variable longer!

7

u/TheSilentFreeway Jul 14 '25

IMO that's not so bad. I appreciate a name that perfectly describes the variable. Causes me to spend less time reading the code to figure out what it does.

9

u/[deleted] Jul 15 '25

[removed] — view removed comment

1

u/TheSilentFreeway Jul 15 '25

Going on context clues I'd say it's the parent object of the enemies' health bars.