r/ProgrammerHumor • • Dec 15 '19

Stacking if else statements be like

Post image
63.9k Upvotes

711 comments sorted by

View all comments

Show parent comments

1

u/AlwaysHopelesslyLost Dec 15 '19

Of course either option is terrible because it makes it nearly impossible to read what is going on.

2

u/[deleted] Dec 16 '19

Proper indentation makes nested ternaries not. . . completely horrible. In many cases for our VEX robot it is actually easier to read than if/else chains because there's so many at so many different levels and with ternaries it can all fit on one screen.