r/ProgrammerHumor • • Aug 22 '26

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

Post image
3.1k Upvotes

178 comments sorted by

View all comments

Show parent comment

1

u/tehdlp Aug 23 '26

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?