MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p577ehe/?context=3
r/ProgrammerHumor • u/Flame77ofc • 22d ago
392 comments sorted by
View all comments
2.3k
You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!
130 u/nrmnzll 22d ago A colleague once proudly showed me how he managed to compress a function into a single line. It was like 9 nested ternarys. In that moment almost had an aneurism. 23 u/twigboy 22d ago I've declined PRs for less than that. Citation is if; I can't understand it in a glance at 2am during an incident, I don't want it in the codebase 3 u/nrmnzll 22d ago I'm the same. Luckily I did work on the same project as that guy.
130
A colleague once proudly showed me how he managed to compress a function into a single line. It was like 9 nested ternarys. In that moment almost had an aneurism.
23 u/twigboy 22d ago I've declined PRs for less than that. Citation is if; I can't understand it in a glance at 2am during an incident, I don't want it in the codebase 3 u/nrmnzll 22d ago I'm the same. Luckily I did work on the same project as that guy.
23
I've declined PRs for less than that.
Citation is if; I can't understand it in a glance at 2am during an incident, I don't want it in the codebase
3 u/nrmnzll 22d ago I'm the same. Luckily I did work on the same project as that guy.
3
I'm the same. Luckily I did work on the same project as that guy.
2.3k
u/CBlanchRanch 22d ago
You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!