Subclassing and Composition - A Pythonic Tour of Trade-Offs - Hynek Schlawack [Fwdays Python+DS]

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • This is a video from the Python+DS fwdays'24 conference, which was held on April 20, 2024
    fwdays.com/en/...
    Subclassing and Composition - A Pythonic Tour of Trade-Offs - Hynek Schlawack - Variomedia AG, Software Engineer
    Talk description:
    Ever seen a code base where understanding a simple method meant jumping through tangled class hierarchies? We all have! And while "Favor composition over inheritance!" is almost as old as object-oriented programming, strictly avoiding all types of subclassing leads to verbose, un-Pythonic code. So, what to do?
    The discussion on composition vs. inheritance is so frustrating because far-reaching design decisions like this can only be made with the ecosystem in mind - and because there's more than one type of subclassing!
    Let's take a dogma-free stroll through the types of subclassing through a Pythonic lens and untangle some patterns and trade-offs together. By the end, you'll be more confident in deciding when subclassing will make your code more Pythonic and when composition will improve its clarity
    Talk and presentation:
    fwdays.com/eve...
    More talks and videos from the conference:
    fwdays.com/en/...
    Fwdays has been organizing large-scale conferences for developers for more than 14 years for the following spheres: JavaScript, .NET, Python, Data Science, PHP, QA, Highload, Architecture, DevOps, Databases.
    More information about actual events:
    fwdays.com/en/...
    Sign up to be the first to know about the opening of ticket sales with the best price:
    Facebook: / fwdays
    Twitter: / fwdays
    Telegram: t.me/+qOZXsXtA...

Комментарии • 4

  • @fwdays
    @fwdays  Месяц назад

    Слідкуйте за нашими наступними подіями: fwdays.com/events

  • @eqanasif
    @eqanasif 15 дней назад

    Excellent talk!

  • @mberoakoko24
    @mberoakoko24 27 дней назад

    This is legitimately very helpfuil

  • @SuperOblivionfan
    @SuperOblivionfan 4 дня назад

    Great talk!! Do you have any other resources or examples where inheritance/subclassing might be preferred over composition?