DEV Community


Discussion on: What’s an unpopular software opinion you have?

turnerj profile image
James Turner • Edited

Key phrase: time-to-time

Don't mind ternary operators for simple cases but once someone starts putting multiple function calls in each part of the operator, it makes it difficult to debug.

astarael2 profile image
Simon Mills

Very much this. If you have more than one ternary operation in a statement, you need to not use any.

Forem Open with the Forem app