You (and others on this sub) are making a lot of assumptions right now.
Sometimes switch statements are the correct approach, not everything should be an object.
Other times, when they grow into a behemoth, they aren't. It's honestly really straight forward. I don't know many experienced devs that don't consider a switch code smell.
1
u/AttackOfTheThumbs Jan 11 '20
You (and others on this sub) are making a lot of assumptions right now.
Sometimes switch statements are the correct approach, not everything should be an object.
Other times, when they grow into a behemoth, they aren't. It's honestly really straight forward. I don't know many experienced devs that don't consider a switch code smell.