This is a question for people more experienced with Python, but everybody feel free to answer if you feel like you can provide something decent to the discussion.

Also feel free to explain why you feel that way and your experiences with Python and the paradigms.

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    12 hours ago

    I disagree. You can write a lot of high quality Python code (yeah it exists) before you need to use inheritance. If you’re reaching for inheritance as the solution to all complexity, GoF-style, then you’re doing it wrong.

    It’s an occasionally useful tool that has its place, not something you should instinctively reach for.

    • Sleepkever@lemm.ee
      link
      fedilink
      arrow-up
      3
      ·
      11 hours ago

      OOP not just inheritance. Object oriented programming starts with structuring things in objects, like the name suggests. It quickly has a place in anything more then a few hundred lines of code.

    • Diplomjodler@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      11 hours ago

      I rarely use inheritance. Like i said, I see OOP mainly as a way to achieve cleaner code structure and better readability. That last point is really my main concern.