Тёмный

Strategy Design Pattern - design patterns (ep 3) 

BBarters
Подписаться 58 тыс.
Просмотров 57 тыс.
50% 1

In this video, we learn the strategy pattern in object oriented design.
We discuss how to implement strategy pattern with an example from a famous computer game "Age of Empires".

Опубликовано:

 

10 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 102   
@muktiranjan6256
@muktiranjan6256 3 года назад
This is the best and simplest example i have seen on youtube for this pattern
@danteeep
@danteeep 5 лет назад
you are the only guy who explains it simply and efficiently thanks a lot !!!!!
@PavanKumar-yj8fu
@PavanKumar-yj8fu 3 года назад
The best explanation, thank you very much!!!
@vivekshaw9251
@vivekshaw9251 2 года назад
Awesome Explanation : How composition is used over inheritance here is just magic.
@Infinitesap
@Infinitesap 4 года назад
I simply love when the teachers mission is to teach. Really good explanation. Thanks very much.
@BBarters
@BBarters 4 года назад
You're very welcome!
@KentHervey
@KentHervey 2 года назад
Thanks. Third I have watched. The other guys understand, but were inconsistent and your example is better. Thanks
@Mike7393
@Mike7393 7 лет назад
Waiting patiently until the next one. Hope it is soon! I'm a huge fan of Age Of Empires and you using it as an example is very unique. All other videos are rinse and repeat. You bring light to the situation! Great job!
@BBarters
@BBarters 7 лет назад
Thank you for your kind words, it keeps me motivated to put more content up.
@B-Billy
@B-Billy 3 года назад
Is it possible for you to upload more videos on design patterns?
@davidlira8853
@davidlira8853 Год назад
only 4 minutes in, and wow, i like his teaching style
@amitkasrung2027
@amitkasrung2027 3 года назад
Falling in love with your Videos Joshi Sir. I used to watch movies when getting bored but now following your videos. Surprisingly your clean and entertaining explanation makes me forget that I was bored. Thank you so much.
@BBarters
@BBarters 3 года назад
Thank you so much for your kind words!
@mattoattacko
@mattoattacko 5 лет назад
This was the best example explaining strategy patterns that I've found. Easy to understand and comprehend. Thanks!
@ShabnamKhan-cj4zc
@ShabnamKhan-cj4zc 5 лет назад
Thanks a lot for providing information in such a beautiful way with crystal clear example which keeps watcher busy and excited.
@pascallohscheidt7281
@pascallohscheidt7281 6 лет назад
that was a really clean explanation thank you so much :)
@Niehde
@Niehde 4 года назад
Very good explanation, covers not only how it is implemented but why. Congratulations!
@BBarters
@BBarters 4 года назад
Thanks!
@prafulsinghvit
@prafulsinghvit 3 года назад
wow..!! Did someone tell you that you have got special ability to explain things...in your own way. thanks a ton..🙏🙏 keep it up.
@rohankucheriya
@rohankucheriya 3 года назад
Loved the video! Very crisp and clear explanation
@BBarters
@BBarters 3 года назад
Glad it helped!
@muddu69
@muddu69 6 лет назад
Good real time example taken to explain what a family of algorithm means in regards to a strategy framework.
@williamsanchez4801
@williamsanchez4801 6 лет назад
Awesome video bro. It's rare to find educational videos that have clear examples.
@pankajkumaram
@pankajkumaram 3 года назад
What a wonderful explanation. Crystal Clear.. Thanks a lot for amazing concept
@BBarters
@BBarters 3 года назад
Glad it was helpful!
@abhishekmunigial6230
@abhishekmunigial6230 3 года назад
Fantastic example and beautifully explained! Thank you.
@BBarters
@BBarters 3 года назад
You're very welcome!
@nikhillingam4630
@nikhillingam4630 Год назад
Just wow, explained with right examples 🙏🔥
@ronglass5968
@ronglass5968 4 года назад
Great explanation. Now I get it. Many thanks.
@meteisik1987
@meteisik1987 6 лет назад
You sir are born to teach. Thank you so much
@sonalii6683
@sonalii6683 6 лет назад
Thanks for the video. You are an amazing teacher. You simplified the concept and make me understand it in less than 20 min. Please keep posting the good videos.
@virendrasinghbais9028
@virendrasinghbais9028 6 лет назад
he mentioned strategy design pattern for the first time in the 19th min :) ... nice explanation
@ghanshyamkhatri3541
@ghanshyamkhatri3541 3 года назад
Wow...your explalnation is awesome!!
@BBarters
@BBarters 3 года назад
Glad it was helpful!
@muhammadnomanahmedkhan8487
@muhammadnomanahmedkhan8487 4 года назад
Realy valuable content Bro! Thank you so much for sharing your knowledge and valuable experience, and your teaching style is very nice. Again thank you so much for your kind work.
@johnnguyen1655
@johnnguyen1655 4 года назад
Supper good and deep explanation with good example. Thanks!
@minnyanlin2051
@minnyanlin2051 10 месяцев назад
perfect explanation sr.
@bobslave7063
@bobslave7063 6 лет назад
Best explanation of the pattern! Thanks.
@CrazyVariable
@CrazyVariable 2 года назад
This is literal Gold !! Keep up the good work :)
@thinkforsociety
@thinkforsociety 3 года назад
Wonderfull explanation
@lololhahaha6622
@lololhahaha6622 6 лет назад
I love this. Best explanation I have seen. Thank you for your instruction.
@jaseena.rrahila8302
@jaseena.rrahila8302 4 года назад
Excellent Video
@testingDhippiuh
@testingDhippiuh 3 года назад
Thanks for Sharing.
@dennisogbonnaya5923
@dennisogbonnaya5923 2 года назад
This is a very understandable and relatable explanation, i was however hoping for a code example at the end to complement the explanation.
@B-Billy
@B-Billy 7 лет назад
Best of best video I've ever seen... You are a gem..
@MOROCCANFREEMIND
@MOROCCANFREEMIND 7 лет назад
you are a gifted man,thanks
@ghanshyamkhatri3541
@ghanshyamkhatri3541 4 года назад
superb video!!
@AnoopKumar-gv2xj
@AnoopKumar-gv2xj 5 лет назад
fantastic explantion..please keep makiing such videos i am huge fan of you from SOLID Principle Days
@shubhi2648
@shubhi2648 3 года назад
In the project that you demonstrated, it was a pring project I guess.. can't however see any of spring tutorials.. can you pls help me with the link..
@arif73569
@arif73569 Год назад
Awesome
@salmanabbas4994
@salmanabbas4994 2 года назад
Great ! Great ! Great!!!
@AdityaKumar-xw2yx
@AdityaKumar-xw2yx 3 года назад
Genius!!
@navsingh9049
@navsingh9049 3 года назад
This is gold
@shubhi2648
@shubhi2648 3 года назад
just saw few design patterns and couldn't resist myself going to your channel and exploring what more things you have to offer me.. Really like your teaching style..
@sa1ram
@sa1ram 5 лет назад
Extra ordinary work. Great job. Really helpful
@himanisoni5791
@himanisoni5791 5 лет назад
Sir, your videos are best.. Even my teacher can't teach so well... But I need all pattern as my exams are coming soon I want you to cover all of them as soon as possible
@R_BNK
@R_BNK 7 лет назад
Great explanation ... 👍 Very good example ... Subscribed ... Waiting for videos on other design patterns..
@sairamakurti4808
@sairamakurti4808 3 года назад
My c++ implementation, correct me if i have gone wrong anywhere #include using namespace std; class refill{ public: void no_refill(){ cout
@sejaljadhav2962
@sejaljadhav2962 3 года назад
Thankyou so much !
@harinigorla6290
@harinigorla6290 6 лет назад
Head first Deign patterns book has similar explanation.. if anyone interested in reading can go for this book
@amrendrasingh8641
@amrendrasingh8641 4 года назад
Nice explanation. Can you please make videos on OOAD by having some real case study like design Rate Limiter or Design Airline Traffic System controller
@Saurabhnaik
@Saurabhnaik 6 лет назад
Excellent explanation with example. Thanks
@theritesh973
@theritesh973 7 лет назад
Great explanation..really love the way you explain.
@bzhamza8096
@bzhamza8096 2 года назад
Go the point man !!!
@monishkumardurairaj3038
@monishkumardurairaj3038 4 года назад
I got really confused.....how it is possible to create an object for interfaces refillable and repairable in the soldier class...... thanks in advance..
@PradeepSingh-ov3bt
@PradeepSingh-ov3bt 6 лет назад
I didn't understand how by programming we will implement the the interface reference will refer to class objects can you please give a hint
@JoannaJUT
@JoannaJUT 5 лет назад
It is called polimorphism. You can assign the concrete class in this way: Refillable refillable = new TimeBasedRefill(); The variable "refillable" which is a reference of type "Refillable" points to an Object of a concrete class "TimebasedRefill". Any class that extends this Interface can be assigned to this variable, because it IS Refillable. Later, you can use a setter method e.g. setRefillable(new WeaponBasedRefill()), to change the Object dynamically to a different concrete class. You use the reference "refillable" in your code. You do not have to think what the concrete implementation is. You just call refillable.refill() and it works. (It uses the concrete implementation.) I hope this helps you. :)
@sidharthr6615
@sidharthr6615 3 года назад
cool!
@poizinwines6190
@poizinwines6190 5 лет назад
Really he explained very well
@morghayn
@morghayn 4 года назад
Great explanation!
@srijin8419
@srijin8419 5 лет назад
Really awesome explanation. Pls add few more design pattern
@ShivangiSingh-wc3gk
@ShivangiSingh-wc3gk 6 лет назад
Loved it!! Thank You so much
@marriagedance8657
@marriagedance8657 4 года назад
Great explanation
@singhrudrajeet7
@singhrudrajeet7 6 лет назад
It's came as a great help. thanks
@manasbhuyan1465
@manasbhuyan1465 6 лет назад
Super Sir. hats off to you.
@akshaychauhan681
@akshaychauhan681 3 года назад
Change --- "I am Inevitable"
@SureshKumar-dz5gg
@SureshKumar-dz5gg 4 года назад
Hello BBarters, I joined really late to the party. Here I just want to understand where is the strategy? we are using polymorphism right? but where we are really using the strategy?
@anirudhrawat4529
@anirudhrawat4529 5 лет назад
Very well explained...👌
@rajeshbammidy180
@rajeshbammidy180 4 года назад
Best eva!
@oleggorlov9445
@oleggorlov9445 6 лет назад
Thanks. Good explanation.
@techtechtech8391
@techtechtech8391 6 лет назад
Really awesome explanation
@kdhallu
@kdhallu 6 лет назад
Thank you soo much this was way helpful
@vikram4888
@vikram4888 6 лет назад
this is a very good explanation, super clear but I am a novice in Design Patters. Here how do we create refill and repair interface in c++, you mean to say create Abstract class for these also ?? please answer
@manokavesha
@manokavesha 6 лет назад
Its great explanation. :) thanks
@gowthamanv8740
@gowthamanv8740 5 лет назад
Well explained, I loved it. Do videos on all design pattern.
@rolandovillcaarias5112
@rolandovillcaarias5112 5 лет назад
Thank you so much for your explanation using diagrams, it moves my brains. Also, I have a request please, is it possible to use more accurate UML notation when you are drawing relationships between 2 classes/interfaces? in order to differentiate composition, aggregation, association, and so on :). Thank you again.
@thisissid7335
@thisissid7335 6 лет назад
nice one bhai
@malakkassem5868
@malakkassem5868 5 лет назад
YOU ARE AWESOME
@vivek4490
@vivek4490 6 лет назад
Awesome!!!!
@vineetsharma5768
@vineetsharma5768 5 лет назад
awesome
@john_rambo_27098
@john_rambo_27098 6 лет назад
Beautiful...
@chiragpruthi27
@chiragpruthi27 6 лет назад
Nice!!
@finddhananjay4u
@finddhananjay4u 6 лет назад
Thank you
@amitsasane4892
@amitsasane4892 5 лет назад
Nice
@onejama2611
@onejama2611 6 лет назад
well explained. thanks 12:25
@pascallohscheidt7281
@pascallohscheidt7281 6 лет назад
Thanks :)
@hpandeymail
@hpandeymail 4 года назад
Sir, please don’t keep mobile phone in your shirt pocket.. radiations are so close..
@BBarters
@BBarters 4 года назад
Sure, won't do that again !
@manizaeim
@manizaeim 6 лет назад
Copy the scenario from head first!
@haidernaqvi87
@haidernaqvi87 5 лет назад
Low Coupling ... High Cohesion
@subashp3226
@subashp3226 6 лет назад
Good explanation. Try to implement your concept github.com/gitaarush/DemystifyDesignPatterns for reference. Hope for your feedback.
Далее
Observer Pattern - Design Patterns (ep 2)
49:47
Просмотров 563 тыс.
Bacon на громкость
00:47
Просмотров 96 тыс.
Apple Event - September 9
1:38:50
Просмотров 25 млн
Factory method pattern - design patterns (ep 5)
25:41
Builder Pattern - design patterns (ep 11)
17:50
Просмотров 35 тыс.
SOLID Design Patterns
57:18
Просмотров 251 тыс.
Decorator Pattern - Design Patterns (ep 3)
54:35
Просмотров 482 тыс.
Don't Learn Machine Learning, Instead learn this!
6:21
Factory Method Pattern - Design Patterns (ep 4)
27:21
Просмотров 545 тыс.
Strategy Design Pattern
11:32
Просмотров 749 тыс.