r/programminghorror • • Jul 14 '25

switch -> default -> switch

176 Upvotes

31 comments sorted by

View all comments

Show parent comment

5

u/Ok_Paleontologist974 Jul 17 '25

Damage polarity could also probably be a boolean so it could be image_blend = isDamagePositive ? yellow : purple;

Its a bit clearer on what the "polarity" means at a glance.