News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by coldtea on Monday May 06, 2019 @09:35AM (#19839237)
>If someone is hired to work on your code base, presumably they know the language. They know ternarys work...

It's not whether some constructs are parts of the language (languages can have any crap in), it's whether some constructs are bad, confusing, and should be avoided (whether you know what they do or not).

Re:Clear is better than clever [pdf] by zwkrt on Monday May 06, 2019 @09:44AM (#19839310)
If people are confused by a ternary statement I don't want them editing code I have to maintain.
Re:Clear is better than clever [pdf] by coldtea on Monday May 06, 2019 @09:47AM (#19839327)
If someone thinks people can't or shouldn't be confused by a ternary statement, then I don't want them editing code I have to maintain either...