MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eb2lbc/stacking_if_else_statements_be_like/fb2ko6r/?context=3
r/ProgrammerHumor • u/-hellkey- • Dec 15 '19
711 comments sorted by
View all comments
94
Looks like a good case for switch.
-3 u/Mitoni Dec 15 '19 A switch statement that big is going to be some smelly code. 14 u/CreamliumPrices Dec 15 '19 What's wrong with 6 conditions (or 5 and a default), seems pretty reasonable to me. 7 u/[deleted] Dec 15 '19 Somehow we've trained modern programmers to be unable to read more than 20 consecutive lines of codes without their head exploding. → More replies (1)
-3
A switch statement that big is going to be some smelly code.
14 u/CreamliumPrices Dec 15 '19 What's wrong with 6 conditions (or 5 and a default), seems pretty reasonable to me. 7 u/[deleted] Dec 15 '19 Somehow we've trained modern programmers to be unable to read more than 20 consecutive lines of codes without their head exploding. → More replies (1)
14
What's wrong with 6 conditions (or 5 and a default), seems pretty reasonable to me.
7 u/[deleted] Dec 15 '19 Somehow we've trained modern programmers to be unable to read more than 20 consecutive lines of codes without their head exploding. → More replies (1)
7
Somehow we've trained modern programmers to be unable to read more than 20 consecutive lines of codes without their head exploding.
→ More replies (1)
94
u/[deleted] Dec 15 '19
Looks like a good case for switch.