• tiramichu@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    I’ll say this now.

    Inheritance is the most misused capability of OOP which programmers think makes their code look smart, but most of the time just makes a giant fucking mess.

    • red_tomato@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      Hold on, I’m in the middle of drawing an inheritance graph so I know how Dog is related to AircraftCarrier.

  • RustyNova@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    I LOVE TRAITS. YOU’LL HAVE TO TAKE THEM FROM MY COLD DEAD HANDS

    [Insert SpongeBob screaming meme]

    • PlexSheep@infosec.pub
      link
      fedilink
      arrow-up
      1
      ·
      9 months ago

      TRAITS ARE SO USEFUL AND STRUCTS ARE EASILY REPRESENTED IN MEMORY AND WORKED WITH, COMBINED THEY WILL TAKE OVER THE LINUX KERNEL AND THE WORLD