Python Abstract Factory Pattern Explained | Object Creation Made Easy

Поделиться
HTML-код
  • Опубликовано: 25 окт 2024

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

  • @YARBROUGHBRUCE
    @YARBROUGHBRUCE 5 месяцев назад +1

    Best tutorial I have seen on this subject. The example classes were much easier to follow and therefor understand without 'abstract' examples such as foo / bar - thank you!

    • @campbelltech
      @campbelltech  5 месяцев назад

      Thank you for the awesome feedback. I strive to simplify complexity.

  • @youmnahamdan4438
    @youmnahamdan4438 6 месяцев назад +1

    Clearly, perfectly explained

  • @biotexcom5464
    @biotexcom5464 7 месяцев назад +1

    your video so top.
    respect from Ukraine.
    keep making videos.

  • @mgaschenbeck
    @mgaschenbeck 6 месяцев назад

    Thanks for this video, it's very helpful! One question, however. Using the example at 19:00, what is the correct way to accept a parameter on line 7? We may need to accept "South" or "North" as parameters of SpainFactory constructor to make sure language changes from "Spanish" or "Catalan" respectively. Is there a better pattern for this or do we simply make custom constructors in SpainFactory?

  • @Yassou1985
    @Yassou1985 10 месяцев назад +1

    Hello and thank you for the video, would it had been possible to pass the country name as argument with the argparse library and after that execute the client code with country value as an argument : python3 main.py -- england ?

    • @campbelltech
      @campbelltech  10 месяцев назад

      Hi @Yassou1985, that is indeed possible.