Adapter Pattern - Design Patterns (ep 8)

  Рет қаралды 238,006

Christopher Okhravi

Christopher Okhravi

6 жыл бұрын

Video series on Design Patterns for Object Oriented Languages. This time we look at the Adapter 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

Пікірлер: 383
@emangonzalez2309
@emangonzalez2309 3 жыл бұрын
i learn more from ur 30 - 40 mins than my 2 hour lectures
@SaurabhGuptaicecool
@SaurabhGuptaicecool 4 жыл бұрын
This series is like godly for interview preps.
@TusharMehmi
@TusharMehmi 6 жыл бұрын
I think yours are the only videos on KZbin for learning Design patterns thoroughly without even reading anything, really thankful for that and please never stop making videos.
@santoshkumarganji
@santoshkumarganji 6 жыл бұрын
Hi Christopher, Thanks for making such a wonderful videos on design patterns. I just come across your videos while searching for design patterns in youtube. I have gone through all of your videos on design patterns. I say these are simply excellent. Keep up the pace. Expecting all GOF design patterns through your videos.
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
+santosh ganji Solid. I'm glad to hear. About all the GOF patterns, I've been thinking about whether I should indeed cover all of them. I was intending to only do the ones in Head First but since the videos have been quite well received I might make a video for the remaining patterns in the GOF book. Thanks for commenting! And thanks for watching :)
@pmz558
@pmz558 4 жыл бұрын
@@ChristopherOkhravi 2020 and I share the same sentiment
@theodorebraxton4509
@theodorebraxton4509 2 жыл бұрын
You probably dont give a shit but does anyone know a trick to get back into an instagram account?? I was stupid forgot the account password. I would love any tricks you can give me!
@jonroland6780
@jonroland6780 2 жыл бұрын
@Theodore Braxton instablaster :)
@theodorebraxton4509
@theodorebraxton4509 2 жыл бұрын
@Jon Roland I really appreciate your reply. I found the site thru google and Im waiting for the hacking stuff now. Takes a while so I will reply here later when my account password hopefully is recovered.
@alim80
@alim80 6 жыл бұрын
Thank you, Christopher, these are honestly the best design pattern videos I have seen and help me to really understand them. I look forward to the next video :)
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
+Ali Morrison Thanks! I'm glad to hear the content is valuable. Next coming soon :)
@kushiskinng
@kushiskinng 2 жыл бұрын
My god.. that transformer vs the plug difference to explain the difference b/w adapter and decorator is amazing! This would remain with me forever now. Thanks Chris!
@pinkponyofprey1965
@pinkponyofprey1965 6 жыл бұрын
Oh, man, finally a dyed in the wool bona fide natural born teacher!!! If there were teachers like these around when I was a kid I would have paid attention first time around. But ... they spread the info out over a complete year that it took mr Okhravi less than half an hour to explain. Well, I ain't dead yet so I can learn this now instead! :D
@johnyepthomi892
@johnyepthomi892 3 жыл бұрын
You’re passion is infectious. Hope you keep this going .
@Themicke90able
@Themicke90able Жыл бұрын
Dina videos är dom absolut bästa jag har sett på länge. Sättet du förklarar på är extremt pedagogiskt! Tack för att du har gjort dom här videorna!
@brunon.8962
@brunon.8962 3 жыл бұрын
This should be the first chapter of the book, it explains composition, delegation, asociation in a very simple way.
@ChristopherOkhravi
@ChristopherOkhravi 3 жыл бұрын
Very good point!
@MrRemyguy
@MrRemyguy 3 жыл бұрын
This is better than the "Best Selling" Udemy course on Design Patterns. I know cuz I bought it and now regretting.
@diego99799
@diego99799 6 жыл бұрын
Your videos are one of the few things I cant wait. Thank you!
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
+Olaf Olafski Haha thank you I'm glad to hear :)
@djBC10000
@djBC10000 4 жыл бұрын
I like how you teach man, it is very clear and simple to understand, and I appreciate all of the efforts you are putting.
@isserzack4641
@isserzack4641 4 жыл бұрын
Thank you for the great tutorials. You put so much effort on this and I should say that you made it crystal clear. Please continue this series and keep sharing with us your knowledge.
@YazanAlaboudi
@YazanAlaboudi 4 жыл бұрын
Great video again. Whenever I try to explain this to anyone, I typically try to give an example where I'm trying to save some entity to a database. Then I explain the database may change but should not really affect the modelling of our program.
@josecarlosramirez486
@josecarlosramirez486 6 жыл бұрын
I had an exposition in university about this design pattern yesterday. You taught me how to explain this in a way that people can understand it, and I'm really thankful for that. Happy holidays Christopher :)
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
I’m humbled and really glad to hear that. Congrats on the success! And happy holidays to you too :)
@jongrant6385
@jongrant6385 6 жыл бұрын
Amazing videos mate - loved the transition at 4:14 :P
@JohnDoe-ej6vm
@JohnDoe-ej6vm 3 жыл бұрын
:D
@a_green_cat
@a_green_cat Жыл бұрын
i really like how you always repeat things, i find it really difficult to focus on lectures and spoken word in general but with your videos i never lose track
@jayakapoor
@jayakapoor 6 жыл бұрын
Thank you Christopher for making these videos. These are the best videos that I ever came across on design patterns. I have watched all the videos and eagerly waiting for next one...
@shivamsaxena7378
@shivamsaxena7378 5 жыл бұрын
The best explanation of design patterns I have come across on the internet. Great work man, you got a new subscriber! :)
@nikitavorotnyak9661
@nikitavorotnyak9661 5 жыл бұрын
Excellent editing, making your videos very fluid and easy to digest! Great videos!
@giveexamples
@giveexamples 6 жыл бұрын
Before you, learning the design patterns was absolutely tough for me, but after watching your great and subjective videos, everything has changed; TADA. Again the best adapter explanation I have ever seen.Thank you man.
@sohamsmarty
@sohamsmarty 2 жыл бұрын
My friend, you are one of the most thorough teacher of these topics that I have come across. Thank you for this video!
@liangsitao
@liangsitao 5 жыл бұрын
Thank you Christopher, for recording the whole discussion, instead of making lectures. The videos and in super headfirst manner and I am able to focus and grasp the concepts and rationale behind these patterns. And most importantly I learnt from you on how to read a technical book and present our own interpretation. 👍
@karapasi6206
@karapasi6206 11 ай бұрын
You are amazing Christopher. So much dedication and passion. You actually created desire to learn and dive into these concepts. Thanks a lot.
@kasperwesteraa9558
@kasperwesteraa9558 Жыл бұрын
You are very good at explaining how design patterns work! Love it!
@FebiMettasari
@FebiMettasari 4 жыл бұрын
I really enjoy your explanations on design patterns, it helps me a lot in my OOAD class 💙
@user-xi9un9qm1u
@user-xi9un9qm1u 6 жыл бұрын
Yet another great video The series is incredibly clear, Thanks a lot Waiting for the next one
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks! And thanks for following the series. Next is on its way :)
@alvarezmartin
@alvarezmartin Жыл бұрын
Christopher: I've just found you....and I have to say that it is the best explanation that I saw about design patterns. I'll see other videos. Thanks from Argentina! Martin!
@oliviermarty4514
@oliviermarty4514 6 жыл бұрын
Great video, i'm watching all of them and always looking forward for the next one. I manipulated in the past, when working on android projects, a thing they called a List Adapter that would interface together a collection of POD/primitive data objects and a collection of graphical/UI objects. At the time i wasn't really digging into those design patterns thing but now thanks to you I have a better understanding of what this adapter did.
@lakepee
@lakepee 3 ай бұрын
This is super incredible to learn design principles. I’m really happy I found this video
@dennisvanotterdijk
@dennisvanotterdijk 3 ай бұрын
Love the practical examples that you use to demonstrate the design pattern! Thanks for the effort you're putting into this...
@hk318i
@hk318i 6 жыл бұрын
A good example, in scientific computing where parallel computing is required, an adapter could be used to wrap/hide MP or/and MPI. That also simplify the interface of such external libraries.
@ZsoltGaramszegi
@ZsoltGaramszegi 2 жыл бұрын
Christopher, you always say you don’t know this you don’t know that, yet you explain it very understandably. :) Thank you!
@matimozg
@matimozg Жыл бұрын
I love that way of studing. It's fun, and you get me knowledge in easier way. Thanks a lot man!
@PuHLiY92
@PuHLiY92 3 жыл бұрын
Спасибо за объяснение. Не зная язык - понял всё, благодаря жестикуляции.)
@brocoli7006
@brocoli7006 3 жыл бұрын
Love the transitions in this one :D But really, this videos are very easy to understand and have a good structure! love It!!
@BrunoPouliotLeCanardNoir
@BrunoPouliotLeCanardNoir 4 жыл бұрын
Just want to say, i love the way teaching us 😉.
@learn-cool-kids
@learn-cool-kids 2 жыл бұрын
Thanks Christopher, the pedagogy is super good and it helps a lot after going through the books.
@jmendowski
@jmendowski 4 жыл бұрын
Thanks a lot for ur effort on these videos. I have watched all patterns videos. Every programmer should watch them.
@nehanigam4997
@nehanigam4997 5 жыл бұрын
Thank you Christopher for making usch wonderful and energetic videos.
@chornge1
@chornge1 6 жыл бұрын
I have both design books and have been lacking the time to thoroughly go through them, so thank u!!!
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
+Christian M Solid. Makes me glad to hear that the videos work as a complement. Thanks for sharing and for watching :)
@gayathrimahalingam95
@gayathrimahalingam95 3 жыл бұрын
The way you simplify and explain it is extremely commendable. I am preparing for an interview after a break in my career . On searching for relevant videos, yours is the best I would say, Thanks a lot. You bring in so much clarity by explaining it with simplest possible examples . Great teaching.. Thanks a lot. Could not resist appreciating your effort. I am pausing the video in the middle and typing this. Great job sir.
@systemdesignog
@systemdesignog 2 жыл бұрын
Hi Christopher, I was going through head first book, and got confused with examples. But you explained those examples very well. Thanks !!
@javacoco5047
@javacoco5047 3 жыл бұрын
great work!!! you inspire me for my upcoming bachelor thesis - thank you, so helpful!
@antenna7851
@antenna7851 3 жыл бұрын
I barely comment to youtube videos but i was compelled to write to this one. That was such a nice example and explanation. Your energy definitely made it a lot easier to watch as well. Thanks
@fordsim7
@fordsim7 5 жыл бұрын
Love the explanation. Quick and easy to understand!
@andreibatinas3880
@andreibatinas3880 Жыл бұрын
Man…you did such a great job! I just want to see more videos from you!
@SosetaFurioasaJr
@SosetaFurioasaJr 3 жыл бұрын
Man, that head swivel at 26:11 is hilarious :))
@ChristopherOkhravi
@ChristopherOkhravi 3 жыл бұрын
😆
@AmongManyWays
@AmongManyWays 3 жыл бұрын
Loved the way you teach or make videos. Also love ur cat too !
@LavGupta08
@LavGupta08 6 жыл бұрын
Thanks Chris. I really love these videos.
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks for letting me know. And thanks for watching and sticking around :)
@favrito
@favrito 5 жыл бұрын
Great explanation! Thanks a lot, I will definitely check out more of your videos!
@gilbert.gabriel
@gilbert.gabriel 7 ай бұрын
Wow. I now understand the Adapter pattern. Very thorough explanation. Glad I found this video!
@leandrongalo
@leandrongalo 6 жыл бұрын
thanks a lot Christopher!! you're amazing!!
@colinhughes2452
@colinhughes2452 6 жыл бұрын
Another great explanation of a design pattern. Enjoy your youtube videos - these and code-walks.
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks! And thank you for the code walks shoutout :)
@rongliao9255
@rongliao9255 3 жыл бұрын
Very clear and concise explanation with engaging teaching style!
@Blaskillo
@Blaskillo 2 ай бұрын
Hello Chris, again awesome video, I did not know that adapter pattern was also known as a wrapper, but thank you for mentioning that at the beginning of the video, it makes totally sense to be called like that
@ribaker822
@ribaker822 5 жыл бұрын
Thank you for these videos Christopher.
@thereversejosh
@thereversejosh 3 жыл бұрын
Hi Christopher. This has been the best explanation I've seen. Immediately liked the video and subscribed to your channel! You earned yourself a new fan 😁
@tanushsathiyaseelan9428
@tanushsathiyaseelan9428 3 жыл бұрын
Man u you are wonderful. Wish every single teacher is like you. Thank for you for these golden content
@XadaTen
@XadaTen 6 жыл бұрын
My brain exploded as I finally understood the differences. You are the best!
@jackylau2597
@jackylau2597 5 жыл бұрын
best design pattern tutorial on youtube. thanks!
@pradeepsanju
@pradeepsanju 6 жыл бұрын
Thanks Christopher. It is really helpful.
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks for letting me know. And thanks for watching :)
@safvanp567
@safvanp567 6 ай бұрын
Thank you so much for this playlist, I highly appreciate your hard work in creating lectures
@kerstiny4698
@kerstiny4698 3 жыл бұрын
I truly wish that more lecturers can teach from the perspective of students, just like you do! I pay a ton in tuition but sometimes just don't get much digestible knowledge in return. There are professors that don't even bother to tailor the publicly available slides to their actual need, let along writing notes on board. They just read thru or fly thru some slide and give random thoughts. While this might work for advanced class, it's absolutely a nightmare for any introductory course. Sir you deserve a larger platform, and I wish you all the best!
@ankitgupta8215
@ankitgupta8215 6 жыл бұрын
Awesome videos!! I was waiting since long for such videos..Simply Excellent Work :) . Please keep on posting.
@chaoukimansour7816
@chaoukimansour7816 Жыл бұрын
Best deign pattern videos out there ! Thanks Christopher
@TheFlyguy31
@TheFlyguy31 6 жыл бұрын
Probably the best example of the Adapter Pattern I've seen
@RafaellLycan
@RafaellLycan 6 жыл бұрын
Chris you saved my life today. I'm working with a legacy application that's expanding to another country and now we need to integrate with different third-party apps. Thank you and when you visit Barcelona remember me that I own you a beer. Take care
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
+Rafaell Lycan Hah! That's awesome I'm super glad to hear! High five for solving the issues you faced! :) And thanks for the beer :) :) :)
@delucabruno
@delucabruno 6 жыл бұрын
This video needs more views, very helpful!
@dscheme4427
@dscheme4427 5 жыл бұрын
Cool stuff bro, keep doing 'em. What I would like to see is the adapter pattern explained in terms of how to, for example, draw different tree-views based on a composite pattern. Maybe you'll get there later, just started watching.
@nikhilemmanuel9511
@nikhilemmanuel9511 6 жыл бұрын
Well for not a good "reader" like me, your videos has been so clear and understanding. thanks a ton bro. keep it going.
@balajim6628
@balajim6628 5 жыл бұрын
Thatnks a lot Christopher for making these videos, you are explaining very well, easy to understand, I am not referring any books. your videos are enough.. .:)
@fernandogomez83
@fernandogomez83 2 жыл бұрын
Thank you for the video Christopher.
@danielvisky
@danielvisky 5 жыл бұрын
You rock on all your classes, man
@alicialockhart1081
@alicialockhart1081 2 жыл бұрын
Thank God a video with no weird accents.
@hananalsahafi9830
@hananalsahafi9830 6 жыл бұрын
Thanks for sharing your awesome knowledge.
@jesszhang5825
@jesszhang5825 5 жыл бұрын
Very helpful, thanks Christopher!
@raihan115
@raihan115 6 жыл бұрын
I really like your explanation of the topics! Go on :D
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks! I appreciate the motivation :) Glad to have you following. Thanks for watching :)
@kewtomrao
@kewtomrao 2 жыл бұрын
Amazing!!! May god bless you for these tutorials!!!
@teoupenieksbracco2730
@teoupenieksbracco2730 5 жыл бұрын
Very nice video! I'm kinda new with all this stuff and this video helped a lot!
@NarendraKolink
@NarendraKolink 2 жыл бұрын
Best video to understand the Adapter Pattern... Thank you so much for your superb explanation.
@rashidulhasan5873
@rashidulhasan5873 6 жыл бұрын
your videos are awesome! keep up the good work man.
@NeoBTK
@NeoBTK Жыл бұрын
Oh man, you explained the adapter pattern in a great way! I subscribe to the channel and am going to watch your other videos :)
@onnobeckerhof5790
@onnobeckerhof5790 3 жыл бұрын
Brilliant. Thank you so much!
@tobidaada
@tobidaada 5 жыл бұрын
This was really well done. I love your style of teaching and enthusiasm.
@AZ-mi2wj
@AZ-mi2wj Жыл бұрын
Very nice video! Well explained!
@VikramKaull
@VikramKaull 6 жыл бұрын
Hi Christopher Another great video explaining the pattern! Thank you so much for sharing! I wanted to point out more about using the Adapter pattern for an external library. It's definitely a good idea to encapsulate all your external DAO calls in the adapter pattern, like calling a database or an external service. Another reason is Exception handling. For whatever reason you have defined your own exception type hierarchy (transient or permanent exceptions) in your code base. And you want to translate the exceptions thrown by your external dependency. Adapter pattern is good for that because you can wrap the call to adaptee.speceficRequest() in a try{} catch{} and re-throw exceptions of your own type. One useful point of rethrowing exceptions of your own type is to have different retry policies for different kind of exceptions. Thanks again for sharing the video!
@cdmapplications
@cdmapplications 6 жыл бұрын
Another great job! Keep it up Christopher!
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks! And thanks for sticking around :)
@botrate412
@botrate412 Жыл бұрын
very good explanation thank you Christopher.
@ahmetkemalakargul1060
@ahmetkemalakargul1060 5 жыл бұрын
Passing between scenes is awesome 7:50 :D
@nomanhanafi9551
@nomanhanafi9551 4 жыл бұрын
what a presentation man! amazed
@George74rus
@George74rus 3 жыл бұрын
Wow! Clear, creative, understandable english. Subscribed.
@shaktisingh-lu3dm
@shaktisingh-lu3dm 3 жыл бұрын
Great Video. Very understandable. Many thanks for such videos.
@taras_anichyn
@taras_anichyn 10 ай бұрын
Thanks for that video. Very clear explanation.
@mireazma
@mireazma 3 жыл бұрын
The key lies in 17:19, otherwise (without DI) the whole thing would be useless because if we hardwire Adaptee into the client, we might as well call SpecificRequest(). OTOH we could make Adaptee implement from IAdaptee with IAdaptee.SpecificRequest().
@TheMcallist1
@TheMcallist1 5 жыл бұрын
Beautiful. Thanks!
@nareshbonagiri6932
@nareshbonagiri6932 5 жыл бұрын
Hi Christopher, Thank you very much for making the excellent videos on design pattern and your explanation is damn good. thanks again
@MyroslavOhorodnyk
@MyroslavOhorodnyk 4 жыл бұрын
Thanks for your video, as always!!!
@GalaxyTIV
@GalaxyTIV 5 жыл бұрын
Very usefull. Thanks for the effort Christopher!!
Facade Pattern - Design Patterns (ep 9)
16:19
Christopher Okhravi
Рет қаралды 177 М.
Proxy Pattern - Design Patterns (ep 10)
37:35
Christopher Okhravi
Рет қаралды 160 М.
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 15 МЛН
Eccentric clown jack #short #angel #clown
00:33
Super Beauty team
Рет қаралды 28 МЛН
Why You Should Always Help Others ❤️
00:40
Alan Chikin Chow
Рет қаралды 10 МЛН
Decorator Pattern - Design Patterns (ep 3)
54:35
Christopher Okhravi
Рет қаралды 473 М.
PLEASE Use These 5 Python Decorators
20:12
Tech With Tim
Рет қаралды 91 М.
Command Pattern - Design Patterns (ep 7)
39:12
Christopher Okhravi
Рет қаралды 263 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 176 М.
Always Use Interfaces
8:08
Christopher Okhravi
Рет қаралды 43 М.
ONE MORE SUBSCRIBER FOR 6 MILLION!
00:38
Horror Skunx
Рет қаралды 15 МЛН