Abstract Factory Pattern - Design Patterns (ep 5)

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 พ.ค. 2017
  • Video series on Design Patterns for Object Oriented Languages. This time we look at the Abstract Factory Pattern.
    ► The playlist
    • Design Patterns in Obj...
    ► Head First: Design Patterns
    geni.us/nlbA6
    ► Design Patterns: Elements of Reusable Object-Oriented Software
    geni.us/PsXmo
    💪 Patreon Community
    / christopherokhravi
    📚 Products I Recommend
    geni.us/71ZXF

ความคิดเห็น • 499

  • @worldown
    @worldown 7 ปีที่แล้ว +411

    I study and improve not only patterns but also English. Thank you for clearful and not boring lessons =)

    • @ChristopherOkhravi
      @ChristopherOkhravi  7 ปีที่แล้ว +18

      Thank you for the kind words and for watching :)

    • @joselosddrd
      @joselosddrd 7 ปีที่แล้ว +3

      I also improve patterns and English... you said why.. Well because We're learning English -__- xD

    • @mikekajzer
      @mikekajzer 6 ปีที่แล้ว +63

      this is no joke, this guy articulates words with speed of a Gatling gun and yet he's perfectly understandable. not even a single word gets ambiguous or hard to catch!

    • @akashchourasiya72
      @akashchourasiya72 2 ปีที่แล้ว

      LOL😂

    • @user-qz8uy9sf2w
      @user-qz8uy9sf2w ปีที่แล้ว

      Хорош

  • @mesesamboby
    @mesesamboby 11 หลายเดือนก่อน +8

    It's 2023 and I am watching the series (of course with pen and notebook ready). Thank you very much Chris! The value you add is huge.

  • @neonskyscape
    @neonskyscape 3 ปีที่แล้ว +20

    I have to admit (yeah I watch it now in 2020) that I really haven't seen any tutorial videos on YT that are as immersive and fun to watch as this one. I am a computer science student that likes to explore CS-related content and I accidentally stumbled upon your channel. I may say that these 25+ min videos are better structured than all the lectures I have attended at my University. Well done!
    I am a subscriber now! Thanks for creating and sharing this interesting content!

  • @adamsolkar
    @adamsolkar 7 ปีที่แล้ว +230

    Please include code examples as they really help cement the idea, like you did in decorator pattern.

    • @koruspring1519
      @koruspring1519 5 ปีที่แล้ว +15

      Second this. I know this is about abstraction but man.. the example is too 'abstract'.

    • @kapilpadaliya2387
      @kapilpadaliya2387 5 ปีที่แล้ว +15

      Watch Derek Banas Vidoes on Design pattern after every explaination.

    • @saganawski
      @saganawski 5 ปีที่แล้ว +5

      @@kapilpadaliya2387 thanks. Derek's demonstration really helped me

    • @sohamdatey9035
      @sohamdatey9035 3 ปีที่แล้ว

      check out this video For amazing content with code Example nicely presented th-cam.com/video/Mz3y-s1jkkE/w-d-xo.html

    • @HippieInHeart
      @HippieInHeart ปีที่แล้ว +3

      concrete factories, cement, did i accidentally walk into a construction supply shop or something? lol. but yeah, i agree, code examples would be pretty helpful.

  • @Alarith1988
    @Alarith1988 6 ปีที่แล้ว +85

    Finally understood the difference between Factory Method Pattern and Abstract Factory Pattern.
    Thank you very much. Great series!

    • @ChristopherOkhravi
      @ChristopherOkhravi  6 ปีที่แล้ว +7

      I'm glad to hear. Thanks for sharing :) and thanks for watching :)

    • @MrAceman82
      @MrAceman82 2 ปีที่แล้ว

      It helped me also :)

  • @slipperydippery
    @slipperydippery 3 ปีที่แล้ว +11

    The UI example was so much clearer than the Head First pizza examples! This makes sense in a way that I can use it for my own projects, thanks!

  • @albinsjostrand7050
    @albinsjostrand7050 5 ปีที่แล้ว +2

    Loving these walkthroughs! Perfect for the courses I'm taking that always have very unclear explanations, but where you make it very clear!

  • @cdarius0
    @cdarius0 5 ปีที่แล้ว +2

    25:00 really hits the nail on it's head. Thank you for the nice work!

  • @_overide
    @_overide 6 ปีที่แล้ว +2

    Possibly the best explanation I've ever seen. Thank you Chris!

  • @dmytrouchkin1415
    @dmytrouchkin1415 6 ปีที่แล้ว +30

    You got a talent to explaining difficult abstractions.
    Keep it up, man - result is incredible.

  • @tivmego
    @tivmego 7 ปีที่แล้ว +51

    Man, this video series might be ever green when you are done with it! youtube has connected us in an observer pattern in that since I subscribed, I get updates on your current videos :D

    • @ChristopherOkhravi
      @ChristopherOkhravi  7 ปีที่แล้ว +6

      +tivmego haha thanks! Makes me glad to hear :) Thanks for watching :)

    • @espritgaronne9975
      @espritgaronne9975 5 ปีที่แล้ว

      lol

    • @xavmanisdabestest
      @xavmanisdabestest 3 ปีที่แล้ว +3

      I need to subscribe too! I was constantly polling his channel for new videos like a scrub

  • @shubhambhardwaj8990
    @shubhambhardwaj8990 5 ปีที่แล้ว +2

    The explanation that why we go from factory method to abstract factory is what really helped wrap my head around the concept, Thanks a ton!! :)

  • @ryanconnollyatwork1356
    @ryanconnollyatwork1356 6 ปีที่แล้ว +3

    You have such a great way to teach and keep the user engaged. With the ever important point of the "Why" not just the "How", this video is one of the best in this subject IMO. Thank you very much for sharing!

  • @lankymorley
    @lankymorley 6 ปีที่แล้ว

    I love this series, thanks for your super clear explanations. I'm a fan of the jump cuts, they keep my mind from wandering.

  • @AfriandiHaryanto
    @AfriandiHaryanto 3 ปีที่แล้ว +6

    Posted years ago, yet this one still the best explanation I found so far..
    Thanks (a lot) Chris..!!

  • @nametakenfan
    @nametakenfan ปีที่แล้ว +3

    Freaking HERO - I have been banging my head against the wall for about 2 hours trying to understand Abstract Factory Patterns and you managed to clarify everything in about 25 min. The recap of the definition at the end really brought everything together. Thanks for helping me not fail my CS course

  • @idanlazimi
    @idanlazimi 6 ปีที่แล้ว

    By far the one of the best teachers on TH-cam. Thanks

  • @faridiflex
    @faridiflex 6 ปีที่แล้ว +1

    The best video that explains Abstract Factory pattern.
    Very well edited to keep the pace of video fast enough.

  • @rafatrench
    @rafatrench 6 ปีที่แล้ว

    The method you use for teaching is very dynamic, but at the same time through, thanks to that I was easily able to understand the whole concept. Keep it up!

  • @youcefsb4708
    @youcefsb4708 4 ปีที่แล้ว

    It must be a hell of a feeling to read all these comments and see how helpful you are to others, keep it up please, you are good at this, thank you!

  • @sorskilla
    @sorskilla 7 ปีที่แล้ว +1

    You're really onto something with your design patterns series here. Keep on keeping on. I especially appreciate the fact that you compare the implementation to real world applications. For a follow up series I'd suggest revisiting the patterns after a while and focusing on the comments, most common questions, misconceptions, etc.

  • @rh7201
    @rh7201 6 ปีที่แล้ว

    your example of dark theme and light theme of an application is the most make sense of application development. Thank you.

  • @obamabinladen5055
    @obamabinladen5055 2 ปีที่แล้ว

    This is top notch stuff. Your viewpoint and how you think about it makes the patterns clearer.

  • @briannkurunungi2837
    @briannkurunungi2837 ปีที่แล้ว +1

    Men, Chris, your energy is infectious, lots of love. Thanks a bunch

  • @whatshappening5712
    @whatshappening5712 3 ปีที่แล้ว

    You deserve all 3 buttons from TH-cam

  • @Aruna721
    @Aruna721 6 ปีที่แล้ว

    Best design pattern tutorial series ever!

  • @Vahi
    @Vahi 5 ปีที่แล้ว +1

    I am really impressed by your way of teaching
    Really helped me understand the abstract factory and factory methods pattern
    Glad I found your lessons on youtube
    Keep up the good work

  • @Jacob-bz5hn
    @Jacob-bz5hn ปีที่แล้ว +1

    Literally been trying to wrap my head around the abstract factory pattern for the longest time and your video finally helped me understand what it is and why is is useful!!!!!💯I love your teaching style!!!!! Thank you so much!

  • @konzinovmaverick4539
    @konzinovmaverick4539 7 ปีที่แล้ว +1

    Just want to thank you again for this new video. You still doing good job and the draws in the video were very meaningful. I'm surely gonna be design pattern expert at the end of this serie. Cant wait for the next one

  • @gh8326
    @gh8326 3 ปีที่แล้ว

    Estaba viendo videos de este patrón, vi tu video y dije: pues veamos si logro entender después de varios videos y solo te puedo decir que eres un genio explicando. Te estoy enormemente agradecido...

  • @riteshtyagi5439
    @riteshtyagi5439 6 ปีที่แล้ว +12

    Amazing tutorials sir, the best I have ever seen for design patterns, this is exactly what I was looking for. Thank you so much

  • @cassyojr
    @cassyojr 5 ปีที่แล้ว

    Great explanation, really clarified my doubts. good job!

  • @rajeev7842
    @rajeev7842 2 ปีที่แล้ว +1

    This is some premium explanation making complex topics simple to understand, and I love the way you repeat things so that the idea gets cemented into our head, hats off to you sir, great explanation I hope you never stop doing these, We novice developers need people like you.. :)

  • @LavGupta08
    @LavGupta08 7 ปีที่แล้ว +1

    Thanks again for the awesome video. I wish I had a teacher like you in university.

  • @vicinityconcepts1165
    @vicinityconcepts1165 5 ปีที่แล้ว +12

    This is a great video, you covered the pattern very well. I wanted to add one additional point which you will see in many implementations of this pattern: When you have multiple concrete implementations of a factory, you have the same problem you had when faced with multiple concrete implementations of a product. You want to get the type of product you need, but don't want to get your hands dirty with the business logic involved in creating it. With multiple concrete factories, how can you apply a polymorphic solution for creating the correct type of factory? The answer is a factory of factories. The same way we abstractify the logic for creating products, we can abstractify the logic for creating factories that produce families of products.
    Let's use your operating system example: You want platform-specific UI's, and have created UI factories for Mac OS, Linux, and Windows. Maybe you also have subclasses of those factories for things like light mode, dark mode, accessibility mode, etc. When the program begins, you detect the operating system and graphical settings, and send those details to your factory of UI factories. You are given back the correct concrete UI factory implementation specific to your needs, and can start producing UI elements. Without this extra polymorphic layer, you may be faced with the same problem that the factory pattern was devised to solve.

    • @AbdAllahBoda
      @AbdAllahBoda 3 ปีที่แล้ว

      I love it when people write down what I'm saying in my head, makes me feel connected to the world somehow. :)
      Thanks for sharing your knowledge. :)

  • @sriplano748
    @sriplano748 ปีที่แล้ว

    Yet another awesome video!! When I listen to your explanation it makes me really think as opposed to just be a passive listener. Thank you very much Sir!!

  • @kumarprateek1279
    @kumarprateek1279 5 ปีที่แล้ว

    This playlist is really good for getting a start in design patterns.

  • @arshadyusuf4803
    @arshadyusuf4803 5 ปีที่แล้ว

    Wow Christopher.. You are the man!! I tried in couple of other places, but didn't quite grasp AFP. But you made this so simple..! You don't know how thankful I am to you!!

  • @CostruttoreFolle
    @CostruttoreFolle 3 ปีที่แล้ว

    Awesome video! I had seen only the factory design pattern videos but I cant wait to see the others! Excellent teacher

  • @riteshsharma929
    @riteshsharma929 4 ปีที่แล้ว

    As a novice to design I often have hard time thinking where this thing could be applicable.
    The example in end of themes in UI was of a great help. Thank you. 😊

  • @mayankkukadia
    @mayankkukadia 6 ปีที่แล้ว

    Thanks a lot Christopher for the perfect explanation on Abstract Factory and Factory Method pattern.
    I have seen dozen of tutorials on Abstract Factory pattern but most of them are confusing or miss leading.
    After watching this video, now I perfectly understood Abstract Factory pattern.
    Thank You again.

  • @leviermonaites6832
    @leviermonaites6832 3 ปีที่แล้ว

    I never knew someone with such a great speaking talent man, really really great!

  • @chaitanyatanwar8151
    @chaitanyatanwar8151 3 ปีที่แล้ว

    Thank you for making the understanding so easy.

  • @salepare
    @salepare 6 ปีที่แล้ว

    I'm loving this series, thank you so much !! :D

  • @sachinjaybhay7439
    @sachinjaybhay7439 3 ปีที่แล้ว

    Fantastic series of lectures... Really appreciate the efforts taken to bring out the essence of each pattern... The key I think is the problem, solution definitions and the relatable examples... Kudos

  • @urosmilic3300
    @urosmilic3300 3 ปีที่แล้ว

    GREAT WORK MATE. You helped me a lot with these patterns, i didn't really understood them until i watched your series..

  • @piyushdanej3930
    @piyushdanej3930 3 ปีที่แล้ว

    Beautifully explained with good example of UI controls.

  • @malkitsaggu
    @malkitsaggu 5 ปีที่แล้ว

    Very helpful to understand Abstract Factory pattern. Thank you.

  • @vislobokovaleksander
    @vislobokovaleksander 4 ปีที่แล้ว +2

    I tried to understand this via wikipedia's diagrams and descriptions, but it was too overwhelming for me couple of weeks ago. And now they are REALLY simple. Great thanks to you, man. You are really sticking to KISS principle :)). thank you again

  • @ronironion
    @ronironion 4 ปีที่แล้ว

    Wow you make it soooo clear!
    I liked the theme example, this is a great example!
    Thank you 😊

  • @mantur8207
    @mantur8207 6 ปีที่แล้ว

    Christopher your last example in the video on Mobile App theme is EXCELLENT. It clarifies the real time use of abstract factory pattern and also why we can not use factory method pattern in this example.

  • @Obsi995
    @Obsi995 5 ปีที่แล้ว +2

    I swear it all made sense with that last themes example. Amazing.

    • @ChristopherOkhravi
      @ChristopherOkhravi  5 ปีที่แล้ว

      I’m glad to hear! That’s awesome. How lucky 😊😊 Thanks for watching 😊

  • @kinty255
    @kinty255 6 ปีที่แล้ว

    I understand this pattern so much better now. Thank you for the great explanation!

  • @dp-bhatt
    @dp-bhatt 6 ปีที่แล้ว

    I think you explained the most difficult design pattern in the simplest way. Thanks again :)

  • @muratbagzat7661
    @muratbagzat7661 2 ปีที่แล้ว

    Explained very well, and great time saver for me.
    Thank you!

  • @zondaken
    @zondaken ปีที่แล้ว

    Very good explanation. We had a deep discussion in lessons yesterday because there was the perception that abstract factories return factories but this was massively helpful.

  • @n0block
    @n0block 5 ปีที่แล้ว +2

    Something clicked in my mind while watching this video. Thank you.

  • @MrDaffyduck69
    @MrDaffyduck69 6 ปีที่แล้ว

    Thanks for your tutorials ... They are so interesting, you have the ability to keep my attention high

  • @simaphore
    @simaphore ปีที่แล้ว

    Your explanation is brilliant!

  • @leonardoherreraornelas4667
    @leonardoherreraornelas4667 5 ปีที่แล้ว

    Thank you Chris for this series of video, In this chapter in the book, they make an example using something like an IngredientFactory, something like that i was really impressed because the "Ingredient" receives a concrete factory by passing it in the constructor. That way the Pizza factory was able to cook itself according to the contract that the concrete factory already implemented. I think that specific part of the example from the book was really awesome and i recommend showing that part.
    Anyway, really thanks for sharing your knowledge on design patterns you're really good at explaining.

  • @ambarishkapil8004
    @ambarishkapil8004 3 ปีที่แล้ว

    Hey Chris, nice explanation. Absolutely love your big hand gestures and passionate rants.

  • @enmanuelbolzonello4754
    @enmanuelbolzonello4754 3 ปีที่แล้ว

    Thanks for all these videos talking about design patterns. Very good and clear explanation.

  • @utsavshrestha7162
    @utsavshrestha7162 หลายเดือนก่อน

    Thank you. Much easier to understand as a visual learner.

  • @rajnishkumar-rn2fm
    @rajnishkumar-rn2fm 4 ปีที่แล้ว

    I am watching your all videos on design patterns and concepts, you are genius . And thank you for these wonderful videos. Now eagerly waiting for your videos on system design concepts .

  • @ShyamSharma-pg1zu
    @ShyamSharma-pg1zu 3 ปีที่แล้ว

    Your teaching style is so nice and easy. Thanks a lot

  • @kamildabek_
    @kamildabek_ 2 ปีที่แล้ว

    I love the UI example i.e. dark theme factory vs light theme factory. Really grounds the concept!

  • @amraboughazala5986
    @amraboughazala5986 5 ปีที่แล้ว +1

    for the arrows it can work if you selected arrows starting from concrete factories from the bottom only heading to product B and another starting points from top heading to productA.
    Good job you deserve all the good comments.

  • @sushmitagoswami2033
    @sushmitagoswami2033 5 ปีที่แล้ว

    you are the best teacher i have ever seen

  • @abhishekmiet
    @abhishekmiet 3 ปีที่แล้ว

    Loved the explanation, was struggling with Abstract factory for more than a day...

  • @EmpySoul
    @EmpySoul 5 ปีที่แล้ว

    Excellent video!!!! thanks for your time on creating these videos.

  • @kinvain
    @kinvain 3 ปีที่แล้ว

    The explanation is utterly great! And the final example is way better then any "abstract" pizza factory.

  • @rein29233
    @rein29233 3 หลายเดือนก่อน

    Finally in forver i understood this concept. You are the only i have seen provide a really easy example that is applicable in real life.

  • @wellingtongamagomes7411
    @wellingtongamagomes7411 4 ปีที่แล้ว

    This video provided us an excellent explanation about abstract factory pattern and the main points of difference between the abstract factory and the factory method, congrats brother. Thank you very much!

  • @shristibaranwal2183
    @shristibaranwal2183 2 ปีที่แล้ว

    Great experience... This is how we should be explained!!! Thank you

  • @rohitkhurana7424
    @rohitkhurana7424 6 ปีที่แล้ว

    Thanks a lot. Great tutorial. Fantastic teaching skills.

  • @AnubhavShrivastava
    @AnubhavShrivastava 6 ปีที่แล้ว +1

    the way you speak and present is awesome :)
    thank you.

    • @ChristopherOkhravi
      @ChristopherOkhravi  6 ปีที่แล้ว

      Thank you very much. I appreciate it :) And thank you for watching :)

  • @lmagiczlukas4891
    @lmagiczlukas4891 4 ปีที่แล้ว

    Thank you very much. You help me to understand this pattern easier!

  • @Jtoled0
    @Jtoled0 6 ปีที่แล้ว

    Thanks again for making learning patterns even more entertaining :D

  • @burakakyalcin
    @burakakyalcin 3 ปีที่แล้ว

    you, sir, are an amazing teacher. much thanks.

  • @kapilkumar-mf7pn
    @kapilkumar-mf7pn 4 ปีที่แล้ว

    u are really genious.....
    jo aapko ye subject samajh mai aaya

  • @geedhu000
    @geedhu000 6 ปีที่แล้ว

    Thanks for wonderful video. It helped to understand the difference of Factory Vs Abstract Factory clearly.

  • @daicaphong84
    @daicaphong84 6 ปีที่แล้ว

    Thank you very much. Your Design Pattern playlist is very helpful.

  • @renarsdilevka6573
    @renarsdilevka6573 4 ปีที่แล้ว

    You are excellent, Christopher, just brilliant

  • @maeeshameem1578
    @maeeshameem1578 3 ปีที่แล้ว

    You are really really good.Thank you so much for this series,it would help many many students surely.

  • @dmitryoleynik3710
    @dmitryoleynik3710 4 ปีที่แล้ว

    Thank you very much for clear and deep explanations

  • @mehdieskandari5620
    @mehdieskandari5620 หลายเดือนก่อน

    Your lessons are great! Thank you so much.

  • @tomahawkay8455
    @tomahawkay8455 2 ปีที่แล้ว

    Design Patterns : Never been easier with Christopher Okhravi
    Thank you sir for your high quality content and especially for your eagerness to make sure that the topics are understandable and enjoyable :)

  • @vivekraj1427
    @vivekraj1427 2 ปีที่แล้ว

    Best series on design pattern👍👌

  • @TheBrahmadath
    @TheBrahmadath 6 ปีที่แล้ว +1

    How come I never knew about this channel?
    Good explanation dude!

  • @mark22390
    @mark22390 7 ปีที่แล้ว

    Watched the entire series and I had to subscribe to your channel.... easy to understand and you give great examples. cant wait for the next video!!!

  • @adrianiordache4391
    @adrianiordache4391 3 ปีที่แล้ว

    Very well explained, thank you so much.

  • @360theosiris
    @360theosiris 6 ปีที่แล้ว

    Another amazing video. Your way of explaining really makes things stick. Thank you! *Edit: and please don't listen to people saying you repeat yourself or overexplain things. In the first vid I kinda had the same feeling. But then i realized that's part of the genius and why, at the end of the video, everything is so clear! :)

  • @DominikRoszkowski
    @DominikRoszkowski 7 ปีที่แล้ว

    Thanks, great work!. I can't wait for the next one!

  • @sanjeevsah2606
    @sanjeevsah2606 6 ปีที่แล้ว

    Thank you so much for upload these videos.

  • @miketh4434
    @miketh4434 3 ปีที่แล้ว

    You are a very talented teacher. Thanks a lot really

  • @DanuraJay
    @DanuraJay 2 หลายเดือนก่อน

    Super clear explanation! Thank you!

  • @Julio-cu2hd
    @Julio-cu2hd 6 ปีที่แล้ว

    you rock! nice and clear explanation as always, thanks for your time and effort.

  • @quirkymarshmallow9324
    @quirkymarshmallow9324 3 ปีที่แล้ว

    I wouldn't really call it simple design pattern. But I can certainly see how valuable it is. Thanks for the video!

  • @nicolabombace2004
    @nicolabombace2004 6 ปีที่แล้ว

    Dear Christopher, Thank you for your amazing job. Your videos are very clear and personally I find it very useful to first watch your video and then read the book. Your explanation of both patterns (Factory and Abstract Factory) have been superb. The only minor feedback I have is that I would have loved to see some client code. :)

  • @nicoqueijo
    @nicoqueijo 4 ปีที่แล้ว

    The theme example was really helpful!