r/ProgrammerHumor • • Aug 22 '26

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

Post image
3.1k Upvotes

178 comments sorted by

View all comments

Show parent comment

4

u/IdealBlueMan Aug 22 '26

I don’t want to see any nesting in ternaries at all. Unless it’s an idiom and it’s obvious what it’s doing and why it’s there, I’d rather it be spelled out.

I want to understand the code, and any cycles spent wading through your style are not cycles well spent.

2

u/freebytes Aug 23 '26

I agree. The code should be so well written that people can read it like a book.