• Valmond@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    6 months ago

    People (sometimes) use it far too much and in wrong ways.

    Like inherit when you could just instantiate, or use a template.

    Or when “everything should be a class” was also a bummer (inhetit “run()”), like I’d instantiate “main” twice (cool if it had worked I guess).

    Or old code written by “wizards” where they cast cast cast instances onto other classes to use specific behaviour in crazily dangerous manners. And you’re the one to “fix it” because it doesn’t work well…

    Otherwise OOP is good.