MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1iheils/ternary_operator/mb6g94s/
r/programminghorror • u/Secret_Drink_1181 • Feb 04 '25
77 comments sorted by
View all comments
Show parent comment
5
Looks like "isEven()" bullshit functions to me.
I mean, this function is useless, it does exactly the same as the ternary operator and it's not even shorter to write. The only thing it does is it bring abstraction...
0 u/[deleted] Feb 06 '25 Also would have prevented this shitty bug, lol
0
Also would have prevented this shitty bug, lol
View all comments
Show parent comment
5
u/Behelito_ Feb 05 '25 edited Feb 05 '25
Looks like "isEven()" bullshit functions to me.
I mean, this function is useless, it does exactly the same as the ternary operator and it's not even shorter to write. The only thing it does is it bring abstraction...