Understanding The Factory Design Pattern

  Рет қаралды 18,189

Ryan Schachte

6 жыл бұрын

Please support me on Patreon: www.patreon.com/thesimpleengineer
thesimpengineer www.linkedin.com/in/schachte/
ryan-schachte.com
Don't forget to subscribe! ➨ Website -
➨ New Video! - kzbin.info/www/bejne/eZTbk3uhpt99q6s
The-Simple-Engineer-809577752710435/
➨ Github - github.com/schachte
---------------------------------------------------------------
This tutorial covers the intuition behind the factory design pattern, how it works and the pros of using such a method in Java.

Пікірлер: 42
@susantc5288
@susantc5288 3 жыл бұрын
What a joy to have a tutorial from a clear English speaking individual. Great job btw. Too bad you did not continue.
@mehmeterdem7581
@mehmeterdem7581 5 жыл бұрын
Please just do all the patterns,you have the best three videos/explanations on patterns on the web.
@nkechinnaji8982
@nkechinnaji8982 Ай бұрын
Your explanations are super clear!! Awesome video.
@osure24
@osure24 6 жыл бұрын
Wow so much clicked for me on the video, thanks so much for making it! I'd watched a number of other videos on factories but this one made the most sense to me. I liked how you gave the overview at the beginning and then went into the code. The pace was also good. Keep 'em coming!
@AB-os3jy
@AB-os3jy 2 жыл бұрын
I really appreciate how you write it live while explaining.
@canoelectronico
@canoelectronico 3 жыл бұрын
The opening just made my heart beat faster, this is why I love being a software engineer! no one else gets excited about this stuff like we do!
@noahfinberg7364
@noahfinberg7364 3 жыл бұрын
Great explanation. Very clear and useful!
@JoshSaintJacque
@JoshSaintJacque 6 жыл бұрын
Really nice, thanks for the breakdown.
@drewenia
@drewenia 4 жыл бұрын
Please make all design patterns. You are really really good
@drewenia
@drewenia 4 жыл бұрын
Please just do all the patterns,you have the best three videos/explanations on patterns on the web.
@arsene9216
@arsene9216 5 жыл бұрын
Definitely on point! Thanks for the video
@pg00096
@pg00096 6 жыл бұрын
Amazing explanation! Thank you :)
@hueydo3522
@hueydo3522 3 жыл бұрын
Please continue the Design Pattern series, I fell in love with the two videos you made. Make Obersver pattern or Momento next.
@ElTebe
@ElTebe 5 жыл бұрын
Really great video! Thank you! Here's a little help to improve: 1) your pop filter must be placed farther from the mic because now it not works. 2) adjust your microphone's volume higer, and place farther from you 3) so do not speak into from too close 4) Place your cam close beside/top/bottom of your monitor. So you can look into the cam and see your code/notes at the same time and easier. And it will not harm your neck as your actual microphone setup does.
@TheSimpleEngineer
@TheSimpleEngineer 5 жыл бұрын
Thanks! Check out my visitor design pattern video! I've improved the audio
@gipperize28
@gipperize28 6 жыл бұрын
Outstanding
@temsmirkie4499
@temsmirkie4499 6 жыл бұрын
hey thanks for the video i would appreciate if you did the abstract factory design pattern it will really help
@jcc9283
@jcc9283 6 жыл бұрын
Good stuff
@christophercheok4814
@christophercheok4814 6 жыл бұрын
Can you make other Design pattern video ? i love how you explain it.
@TheSimpleEngineer
@TheSimpleEngineer 6 жыл бұрын
Sure! I'm working on it.
@stephane3115
@stephane3115 5 жыл бұрын
@@TheSimpleEngineer any progress on it? Just saw this video. you made it really seem easy. Covering other patterns wwith the same way of explaining is definitley going to bring you a lot of views. (me for sure ;))
@TheSimpleEngineer
@TheSimpleEngineer 5 жыл бұрын
Would you guys be interested in a visitor design pattern vid? I was going to make one today
@TheSimpleEngineer
@TheSimpleEngineer 5 жыл бұрын
Here ya go! kzbin.info/www/bejne/ipa9on6keJearKM
@bangalorehub1336
@bangalorehub1336 4 жыл бұрын
Amazing. Pls do videos on all servers .
@glendamabasa6423
@glendamabasa6423 3 жыл бұрын
Thanks a lot. This really helped
@TheSimpleEngineer
@TheSimpleEngineer 3 жыл бұрын
Glad to hear that!
@niekbeijloos8355
@niekbeijloos8355 3 жыл бұрын
Very clearly explained. Is this the factory method or factory method pattern ? Could you also provide an explanation of the abstract and simple factory ?
@nguyentung6282
@nguyentung6282 2 жыл бұрын
Thank you so much. I appreciate your video a lot. Hope you will soon reach to 100k sub ^^
@dhananjaypal8498
@dhananjaypal8498 5 жыл бұрын
Hello!! As per the definition, the base class(ServerFactory) was only supposed to declare the interface to create objects. The decision of which object to be created should have been deferred to the subclasses/subfactories. Isn't it??
@softesthairtutorials
@softesthairtutorials 6 жыл бұрын
Subscribed
@rado147
@rado147 4 жыл бұрын
Very nice code example. It would be perfect if u make another patterns... make please Abstract Factory too with some great example... if the example is good, it is way easier to understand. Thanks.
@thumarmitesh6559
@thumarmitesh6559 3 жыл бұрын
Great
@monishkumardurairaj3038
@monishkumardurairaj3038 4 жыл бұрын
In every video,I get to know what is factory design but i just want to understand why factory design??Inorder to solve which problem in real world this is used. for eg:singleton pattern .. this is used when ever there has to be only one object creation has to be done ,In places such as to access the database. so like that in factory design addresses which problem?
@colin7406
@colin7406 3 жыл бұрын
I only know LabVIEW, nice to see where the architecture came from.
@TheDesvendador
@TheDesvendador 4 жыл бұрын
why GetServer is static?
@PS-dp8yg
@PS-dp8yg 5 жыл бұрын
Dumb question...doesn't the ServerFactory violates Open/Closed principle? Every time you create a new server type, you need to modify ServerFactory to support the new server type. Is there anyway around this? Or is this the only scenario that is acceptable to violate Open/Closed principle?
@TheSimpleEngineer
@TheSimpleEngineer 5 жыл бұрын
There are no stupid questions. This example is contrived and does violate OCP. You may be interested in reading about the abstract factory, which delegates object generation through subclassing (another layer of indirection)
@PS-dp8yg
@PS-dp8yg 5 жыл бұрын
@@TheSimpleEngineer Thanks for the reply. I'm going to check abstract factory out.
@belinhobeli9569
@belinhobeli9569 4 жыл бұрын
Ive read on this without being an expert...as long as it is in just that one place, its okey. Yes, it still violate, but still much better than violating everywhere.
@codeintermediate4529
@codeintermediate4529 4 жыл бұрын
Factory method design pattern is explained well in this video - kzbin.info/www/bejne/qpWwgJebmtyHpMU
@ramdaniramdani3134
@ramdaniramdani3134 3 жыл бұрын
I think this is a simple factory not factory method pattern
@dangerous3004
@dangerous3004 Жыл бұрын
It's only a simple factory, not the factory (method) design pattern
Неприятная Встреча На Мосту - Полярная звезда #shorts
00:59
Полярная звезда - Kuzey Yıldızı
Рет қаралды 7 МЛН
Vivaan  Tanya once again pranked Papa 🤣😇🤣
00:10
seema lamba
Рет қаралды 31 МЛН
Когда научился пользоваться палочками
1:00
Время горячей озвучки
Рет қаралды 3,7 МЛН