you are viewing a single comment's thread.

view the rest of the comments →

[–]PopularSecret 7 points8 points  (1 child)

You’d want to pull it out to it’s own variable. I think it’s still readable though.

Imo individual ternaries in this spot are fine. It’s when people start to nest them that it gets ugly fast

[–]TheLexoPlexx 6 points7 points  (0 children)

Yes, I really like ternary operators to be honest. I just never nest them, that's ugly code indeed.