Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Fuck that, ternary operators ftw! I love em
px0623693yI'd only use them for small things where it's obvious what's being done. Not for huge logic where switch or if statements would be a lot more readable and easy to debug. What's the point of writing short code and then spending hours going through it when something doesn't work because it isn't debuggable?
Root651953yNested ternaries aren't difficult to read if you add parenthesis around each.
If you don't, they're annoying.
Always go for the readability :D