One Bad Ternary Operator Deserves Another
by Mark Bowytz
in Representative Line
on 2014-07-08
Personally, in all my years of application development, I have had zero use of ternary operators.
You might argue that ternary operators are useful in that they reduce the code footprint of an application of those unnecessarily lengthy if-then-else statements. But really...who are we kidding here? The only practical application of ternary operator is to either intentionally obfuscate your code or use it as a soapbox to brag about how "l33t" you are.