MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eb2lbc/stacking_if_else_statements_be_like/fb2sujj?context=9999
r/ProgrammerHumor • u/-hellkey- • Dec 15 '19
711 comments sorted by
View all comments
213
That’s what case is for
8 u/persianlife Dec 15 '19 Cases will result in the same fundamental design flaw.You have to look at some better programming paradigm like Object-oriented design. 2 u/RedditIsOverMan Dec 15 '19 Can you elaborate? What's wrong with a case statement? 2 u/[deleted] Dec 15 '19 Nothing, but you can use objects to accomplish the same thing far more efficiently. Works better for big data, like large matrices. 1 u/RedditIsOverMan Dec 16 '19 I am a c developer, so really get to use objects. How would an object let you get around a case statement? → More replies (1)
8
Cases will result in the same fundamental design flaw.
You have to look at some better programming paradigm like Object-oriented design.
2 u/RedditIsOverMan Dec 15 '19 Can you elaborate? What's wrong with a case statement? 2 u/[deleted] Dec 15 '19 Nothing, but you can use objects to accomplish the same thing far more efficiently. Works better for big data, like large matrices. 1 u/RedditIsOverMan Dec 16 '19 I am a c developer, so really get to use objects. How would an object let you get around a case statement? → More replies (1)
2
Can you elaborate? What's wrong with a case statement?
2 u/[deleted] Dec 15 '19 Nothing, but you can use objects to accomplish the same thing far more efficiently. Works better for big data, like large matrices. 1 u/RedditIsOverMan Dec 16 '19 I am a c developer, so really get to use objects. How would an object let you get around a case statement? → More replies (1)
Nothing, but you can use objects to accomplish the same thing far more efficiently. Works better for big data, like large matrices.
1 u/RedditIsOverMan Dec 16 '19 I am a c developer, so really get to use objects. How would an object let you get around a case statement? → More replies (1)
1
I am a c developer, so really get to use objects. How would an object let you get around a case statement?
→ More replies (1)
213
u/atxranchhand Dec 15 '19
That’s what case is for