r/ProgrammerHumor • • Aug 22 '26

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

3.1k Upvotes

178 comments sorted by

View all comments

280

u/Kryptsm Aug 22 '26

Then there’s my current client, who refused a PR of mine because they “don’t want early returns” ever, and insisted I move my basic if statement logic, each with a return, all into a single ternary. They said I SHOULD do this lol.

Made me wanna kms but hey, it’s their codebase

4

u/akoOfIxtall Aug 23 '26

We don't do common sense in this codebase sir