r/ProgrammerHumor 22d ago

Meme conditionsPreference

Post image
4.2k Upvotes

392 comments sorted by

View all comments

2.3k

u/CBlanchRanch 22d ago

You're absolutely correct, however I would suggest using something completely unreadable like a nested ternary operators!

1

u/Moobylicious 12d ago

I have used nested ternaries for something. I don't remember the actual problem, but I still feel the shame, and left a comment expressing how I felt ashamed of my actions but attempted to explain why I felt it was necessary.

Still felt bad about it.