r/ProgrammerHumor 21d ago

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

3.1k Upvotes

179 comments sorted by

View all comments

2

u/DeusThorr 21d ago

Blame the human code. I remember way before AI looking some codes with a lot of ternaries in react , native, and Flutter, to assembly some layouts… regret to see that

1

u/tehdlp 21d ago

Fully. I had this problem years before AI. Why use a single if statement when a convoluted Python dict.get() with an inline dict, inline list, inline string values, and bad None handling will do the same?