• Spott@lemmy.world
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 year ago

    I think part of the problem isn’t just bad hierarchies, it is that they are so hard to fix.

    Bad OOP code gets its fingers everywhere, and tearing out a bad hierarchy can be downright impossible.

    • Jim@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Yeah that’s a good point. It’s telling that inheritance is by design difficult to change unless you follow very specific rules of good OO design patterns.

      I guess it’s easy to write bad code in any programming paradkgm but inheritance makes it easy to screw up.