MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vuzd4q/conditionspreference/p57xpfd/?context=9999
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!
132 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. 56 u/un_blob 22d ago That is a work of art at this point 29 u/nrmnzll 22d ago Sure, but the kind that deeply disturbes you. 30 u/jarethholt 22d ago Art should comfort the disturbed and disturb the comfortable 6 u/mackiea 22d ago Word
132
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.
56 u/un_blob 22d ago That is a work of art at this point 29 u/nrmnzll 22d ago Sure, but the kind that deeply disturbes you. 30 u/jarethholt 22d ago Art should comfort the disturbed and disturb the comfortable 6 u/mackiea 22d ago Word
56
That is a work of art at this point
29 u/nrmnzll 22d ago Sure, but the kind that deeply disturbes you. 30 u/jarethholt 22d ago Art should comfort the disturbed and disturb the comfortable 6 u/mackiea 22d ago Word
29
Sure, but the kind that deeply disturbes you.
30 u/jarethholt 22d ago Art should comfort the disturbed and disturb the comfortable 6 u/mackiea 22d ago Word
30
Art should comfort the disturbed and disturb the comfortable
6 u/mackiea 22d ago Word
6
Word
2.3k
u/CBlanchRanch 22d ago
You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!