Factory Method Pattern Visualized

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

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

  • @zikomo8913
    @zikomo8913 Год назад +4

    Dude, you're a beast, to say the least, you have one of the most useful intermediate level courses. And also on a variety of topics. Keep going!

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

      Thanks for the encouragement. I really put a lot of time into the videos so I’m really glad that people appreciate them. Thank you! 😊

  • @andydataguy
    @andydataguy 4 месяца назад

    Brother you are a legend thank you for this video!! 🙌🏾👏🏾🙏🏾

    • @kantancoding
      @kantancoding  4 месяца назад

      Thanks bro! Means a lot 🙂

  • @h3ckphy246
    @h3ckphy246 Год назад

    The best explanation I've found

  • @dejangegic
    @dejangegic Год назад

    I see that you have ditched the 8-bit music in the background. Thank you for taking my advice in consideration, I appreciate it. Amazing content as always

    • @kantancoding
      @kantancoding  Год назад

      Thank you 😊
      And yes, I took your advice seriously of course 🙂

  • @chandrikasaha6301
    @chandrikasaha6301 11 месяцев назад

    Please make videos on other patterns too. These from you are so understandable. Also please take up real life designs like chess ,splitwise, cache etc.

    • @kantancoding
      @kantancoding  11 месяцев назад +1

      Sounds like a good idea! Thanks for the suggestion 😊

  • @mehnaazmohiuddin
    @mehnaazmohiuddin 4 месяца назад

    Window window = factory.getComponent("Linux", "window")
    would probably remove the need for calling the client code right?
    its a bit confusing when framwork decide to 'call and setup 'client' '

  • @NoahNobody
    @NoahNobody Год назад

    Nicely explained

  • @spiralspree
    @spiralspree Год назад

    after watching this i kinda feel like factory is more like common clean code than a design pattern. i mean if i compare it to another creational design pattern like the builder pattern, then the difference i see is that the builder pattern is designed to solve a certain problem (like saving the programmer from writing increasing number of constructors with every added parameter). the factory pattern doesn't seem to reduce effort, or solve a certain problem, since the conditionals could be in the client code as well, scammed into a single ugly function, but still, adding a new conditional there doesn't seem to take more effort then inside a factory pattern.

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

      nice presentation btw. way better than any i found written, or on video

    • @kantancoding
      @kantancoding  11 месяцев назад

      Hmm, I think that it’s the other way around. Clean code from an architectural perspective makes use of the patterns. And I think abstraction solves many problems although since understanding abstraction means understanding complexity, the problems that are solved by it aren’t so cut and dry.
      It can also create problems e.g. unnecessary complexity.
      Anyways, your comments are very thoughtful. Thank you for supporting 😊

  • @toni30montana
    @toni30montana Год назад

    great video!

  • @nielsdaemen
    @nielsdaemen 17 дней назад

    Should use elif

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

    What happened to vim?

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

      I'm using a vim plugin here. Or are you asking why I'm using and IDE?

    • @akbarhasanov4001
      @akbarhasanov4001 Год назад

      @@kantancoding yea, your terminal is so solid. You betrayed it

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

      @@akbarhasanov4001 🤣 don’t worry, I still use it. When I make videos I try and use whatever makes reading the code easiest for the viewer. But actually, I’m making a video now where I am using only vim 😂

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

    this is highly highly confusing. After watching this video, I forgot what i had understood so far.

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

      Don’t know what to tell you brother. You’ll eventually get it 👍

  • @stardriver8660
    @stardriver8660 Год назад

    if could control video within 20 min that's even better

    • @kantancoding
      @kantancoding  Год назад

      🙂 trust me I try. The more I cut out, the less understandable the explanation becomes. So there are lots of tradeoffs