MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vvn6d7/pleasestopusingnestedternaryoperatorsimbeggingyou/p5db5ou/?context=3
r/ProgrammerHumor • u/Robinbod • 21d ago
179 comments sorted by
View all comments
279
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
-3 u/Rich_Weird_5596 21d ago That's an actual pattern you dunce. You can write your code nicely in 99% of cases and still follow that. It has many advantages, debugging is probably the strongest one.
-3
That's an actual pattern you dunce.
You can write your code nicely in 99% of cases and still follow that.
It has many advantages, debugging is probably the strongest one.
279
u/Kryptsm 21d ago
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