Sebastian Buczyński - Why you don't need design patterns in Python?

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • "Why you don't need design patterns in Python?
    [EuroPython 2017 - Talk - 2017-07-11 - PyCharm Room]
    [Rimini, Italy]
    Exactly 23 years have passed since release of one of the biggest IT classics - ""Design Patterns: Elements of Reusable Object-Oriented Software"". Contents of the book had considerable influence on dominant programming languages of those days. However, design patterns were not glorified by everyone. Voices of rational critic appeared, pointing out that design patterns are just ways to compensate for missing languages features by tons of clumsy code. If one implements design patterns in Python by the book, they will get code that looks awkward, at best. This talk is to present Python's features that either simplifies or eliminates need for implementing design patterns. Even if you don't know what design patterns are - don't worry. You still may see some new interesting Python's features and their usage.
    License: This video is licensed under the CC BY-NC-SA 3.0 license: creativecommon...
    Please see our speaker release agreement for details: ep2017.europyt...

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

  • @oldschoolwreak
    @oldschoolwreak 4 года назад +47

    Speed up to 1.75x.

  • @Turjak_art
    @Turjak_art 3 года назад +5

    Usually I don't listen any conferences because they are mostly boring and telling you unnecessary things but this one is very interesting. I agree we need a new book like GOF but for Python. And if someone write it then please put examples from the real world.

  • @queueoverflow
    @queueoverflow 3 года назад +3

    Thanks, I have been doubting some of the patterns like singleton for years. And I just used Static class(C#) or module(vb and python) instead of singleton. I saw people use singleton just because they want to use singleton. I think we should accept that time has changed and we are to implement the patterns in new ways.

  • @mckenziejohan4149
    @mckenziejohan4149 4 года назад +2

    great talk. targetting new user. i also show this video to my friend who came from Java.

  • @fringefringe7282
    @fringefringe7282 Год назад +1

    Well, I dont know. I prefer to have a Singleton in a constructor instead of leveraging a language property of Python that module is a Singleton. Constructor seems to be more generic and intuitive. If more Pythonic means "utilize every possible quirk of the language" then I am not on board with that.

  • @rmarianoanaya
    @rmarianoanaya 6 лет назад +4

    Nice talk, and a very interesting topic, well presented!

  • @rodwanbakkar2512
    @rodwanbakkar2512 4 года назад +10

    Great talk, "Why you don't need SOME design patterns in Python?" would be a better title??

    • @NNPlayaPL
      @NNPlayaPL 4 года назад +8

      Thanks. Regarding title - Oh yes, definitely! I regret giving it such a title but I cannot undo that now

    • @adm1ralwhiskers
      @adm1ralwhiskers 2 года назад

      or even "Pythonic implementation of some design patterns"

  • @Evkayne
    @Evkayne 4 года назад +1

    Beautiful Talk!

  • @mikiii880
    @mikiii880 3 года назад +3

    Is it just me or the guy asking the question at the end is the guy from this talk? ruclips.net/video/bsyjSW46TDg/видео.html

  • @cthoyt
    @cthoyt 6 лет назад +1

    Nice story, thanks!

  • @nitinagarwal4068
    @nitinagarwal4068 6 лет назад +4

    singleton implementation is Super... unnecessary people have just made it complicated...

  • @ProgramadorLhama
    @ProgramadorLhama 3 года назад +1

    I really disagree with him. I think design pattern has its own purpose and python embraces some of that (decorator, singleton...) well, i think you need design patterns, but in the right cenario and in the right way

    • @NNPlayaPL
      @NNPlayaPL 3 года назад +5

      But with which part do you disagree, exactly? I didn't mean to make a point that patterns are irrelevant in general (sorry if I made it sound that way) but that we shouldn't naively copy implementations from other programming languages

    • @Surister0
      @Surister0 2 года назад

      @@NNPlayaPL I 100% agree with you, I have had Java and .Net developers straight off the bat recommending me to implement their beloved design pattern which is almost always unnecessary in Python/Project

  • @piotrstuglik4424
    @piotrstuglik4424 6 лет назад +5

    Jesus, he butchers English so much. Very hard to listen to.

    • @pantsoff
      @pantsoff 6 лет назад +36

      I think you're just having trouble. I haven't had a single problem understanding him.

    • @atlantis_expedition_member4747
      @atlantis_expedition_member4747 6 лет назад +18

      Yeah I didn't have any problem with his English.
      He has an accent, but his english is damn good.
      (If you think he's hard to listen to, check out the indian programmer channels)

    • @djtoddles8750
      @djtoddles8750 5 лет назад +1

      I always like it when I see someone with the b***s to give a talk when they aren't fluent. Though for some reason I find indian accents extremely difficult to follow, so I guess I'm a hypocrite

    • @wBacz
      @wBacz 5 лет назад

      nie wzywaj imienia Pana Boga na daremno. Dla mnie ang. OK, bo wszystko rozumiem co gada.

    • @andrewsanchez5895
      @andrewsanchez5895 5 лет назад +6

      Just listened at 2x speed without a problem. His English was just fine. Quirky, but perfectly intelligible (which is the most important thing).