• FizzyOrange@programming.dev
    cake
    link
    fedilink
    arrow-up
    2
    ·
    3 hours ago

    This is really terrible advice. Sometimes it’s better to do that, but definitely not in the example from this article.

    If anyone says you should always prefer polymorphism to switches they are a bloody idiot.