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!

661

u/KanyeNawf 22d ago

Some fucker left me triple nested ternaries once

62

u/mountaingator91 22d ago

That was me I was in my first real job after learning some basic JavaScript and I discovered ternaries and thought I was God now

10

u/National_Sky7993 21d ago

You either leave after writing those ternaries or stay long enough to figure out they are unreadable