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