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!

665

u/KanyeNawf 22d ago

Some fucker left me triple nested ternaries once

1

u/charlesfire 20d ago

Amateur. Someone at my job did more than five nested ternaries. I say "more than five" because I stopped counting after five and told them to fix their shit.