• MajorHavoc@programming.dev
    link
    fedilink
    arrow-up
    53
    arrow-down
    6
    ·
    4 months ago

    Interfaces are great.

    Inheritance is often a sign that the previous developer didn’t understand interfaces.

      • MajorHavoc@programming.dev
        link
        fedilink
        arrow-up
        22
        arrow-down
        2
        ·
        4 months ago

        Yep. I’m old, cranky, and prone to broad statements to get reactions.

        That said, for any of you all that love inheritance, I’m judging you so hard. So hard. Very judged. I probably hate your code, and your friends’ code, and your last teacher’s code. Especially your last teacher’s code.

    • deathmetal27@lemmy.world
      cake
      link
      fedilink
      arrow-up
      19
      ·
      4 months ago

      Prefer composition over inheritance. Though that doesn’t mean inheritance has no place in programming.