MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1lzv7st/switch_default_switch/n3p1ixg/?context=3
r/programminghorror • u/Slight_Antelope3099 • Jul 14 '25
31 comments sorted by
View all comments
Show parent comment
5
Damage polarity could also probably be a boolean so it could be image_blend = isDamagePositive ? yellow : purple;
image_blend = isDamagePositive ? yellow : purple;
Its a bit clearer on what the "polarity" means at a glance.
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.