uncle bobs point on switches: needing multiple switch statements probably means you should be using a class
@xianc78 he's talking about shapes and how if you add a new kind of shape you end up having to change all the switch statements instead of just inheriting from the shape class.

which i mean, is sort of true, although using switches like this came from languages that didn't have polymorphism
Sign in to participate in the conversation
Game Liberty Mastodon

Mainly gaming/nerd instance for people who value free speech. Everyone is welcome.