Factory, Builder, Singleton... Creational Design Patterns!

Поділитися
Вставка

КОМЕНТАРІ •

  • @lewisnorth1188
    @lewisnorth1188 4 роки тому +3

    I only found your channel yesterday but it's already one of my favourite on UA-cam

  • @swarnarajuvemula9040
    @swarnarajuvemula9040 2 роки тому

    The only thing I can tell you is THAANK YOU MAN!

  • @Sarmula17
    @Sarmula17 4 роки тому +4

    Here's a sub! This was one of the best and simplest explanation of creational design patterns. Great job man!

  • @akashkesharwani5761
    @akashkesharwani5761 2 роки тому

    That intro was amazing! 😅

  • @amitsonar1565
    @amitsonar1565 Рік тому

    intro was hilarious 🤣😂😂

  • @markanthonyoccena7345
    @markanthonyoccena7345 4 роки тому +2

    Deserves more views! Thank you for this!

  • @gustherica
    @gustherica 3 роки тому +1

    Vide Rapula
    0 seconds ago
    Hi, can I ask you for an advice for my homework. We have an usage case and we need to decide which creational design patterns we need to use

  • @lucas.n
    @lucas.n 4 роки тому +1

    top notch editing skills woah

  • @goofynigiri
    @goofynigiri 3 роки тому

    Brilliant explanation, super clear! Now reading the gof book is much simpler, thank you!

  • @jakubrudy9372
    @jakubrudy9372 2 роки тому

    Świetnie wyjaśnione!
    Mam jedno pytanie, czy użycie singletona w przypadku DatabaseRoutera to przeważnie dobry wybór czy są lepsze alternatywy?

  • @nch77884
    @nch77884 3 роки тому +1

    Great video and very helpful. Thanks so much!

  • @googleuser8512
    @googleuser8512 3 роки тому

    Good video.
    2:49 - iirc, a wrapper over an object creation is called a creation method, not a factory method. A factory method is a pattern that works on inheritance, an creating a wrapper over an object has nothing to do with inheritance.
    Creation methods & static creation methods are often confused with factory methods. But they're not the same, not at all.
    That would be cool to differentiate these.

  • @glitchski
    @glitchski 5 років тому +2

    Obviously, factories are extremely useful with polymorphism. But when we're creating a simple factory producing non-polymorphic objects, is there any advantage in implementing factories over using class constructors?

    • @SmokCode
      @SmokCode  5 років тому +1

      Sure, because you get to have multiple factories that will produce different objects based on current needs, only requirement is to have common interface on produced objects. No need for polymorphism.

    • @rasulseidagul
      @rasulseidagul 5 років тому

      Generally, you write factory to handle creation of objects which have same inteface, so when you ask factory: gimme something which implement that interface according to parameters which I give you - factory will create object of certain type based on your request.

  • @rasulseidagul
    @rasulseidagul 5 років тому +1

    Example of builder and director usage was kinda wrong: you don't need director(who do the general manipulation on the general builder) because you could directly manipulate builder, without need of using director. Even if director make complex manipulation on the builder, you still could put them into builder class, and then access builder "directly", lol. Director is helpful in cases(and/or)
    * when handled "builders" are not "blood-related".
    * when "builders" have different options to build object and already implemented without chance to modify them(so process of creation could be uniformed by director)
    * when you don't know builder but know exactly type of the builder "product", so it is handy to have general way to create "products" throw director(by the definition this is not a director anymore, but a factory)

    • @gustherica
      @gustherica 3 роки тому

      Hi, can I ask you for an advice for my homework. We have an usage case and we need to decide which creational design patterns we need to use.

  • @boskogogic5685
    @boskogogic5685 3 роки тому

    I just discovered your channel right now (beacuse i got problems with design patterns :) ) ! Here's sub and like! You are really interesting mate and you make easier my faculty problems. Big up from Banjaluka, Balkan!

  • @jinyangdeng9501
    @jinyangdeng9501 3 роки тому

    Thank you for such wonderful content!

  • @КсенияКалита
    @КсенияКалита 4 роки тому +1

    thank you!

  • @youu-got-it
    @youu-got-it 3 роки тому +1

    nice intro get me attracted

  •  3 роки тому +1

    good content but sometimes too much editing eg: 3:02 i had to tilt my head to be able to read it. it looks cool but unnecessary