Why adapter design pattern is simpler to understand without charger analogy | LLD | Low Level Design

  Рет қаралды 41,301

sudoCODE

sudoCODE

Күн бұрын

Пікірлер: 64
@meetvaghasia6653
@meetvaghasia6653 2 жыл бұрын
Great example.. I read 10 15 articles and everyone gives forign plug adepter example. Now i understand this pattern. Thanks a lot
@sudocode
@sudocode 2 жыл бұрын
I am glad that it helped :)
@mukuldubey7196
@mukuldubey7196 Жыл бұрын
@@sudocode good morning mam i have tagged & messaged you a few times before on yt & insta but unable to connect with you , i find your previous videos very useful please help me futher with my few more queries regarding the omscs programme.
@narenshalivahana1111
@narenshalivahana1111 Жыл бұрын
@@sudocode me too thanks for playlist
@ankurcharan
@ankurcharan Жыл бұрын
hey, can you tell me how do you create animation?
@klawtawar
@klawtawar 2 жыл бұрын
It's easy to understand and much better than paid courses. Thank you for making this
@Hsn-Ab
@Hsn-Ab 11 ай бұрын
We can implement student interface directly in the schoolstudent class amd it will be accepted in the list So what's the point of writing extra wrapper class or adapter pattern in this case? Could you please help me getting this part ?
@KyuriousBot
@KyuriousBot 3 ай бұрын
I have the same question
@payambassi8784
@payambassi8784 Жыл бұрын
The physical example is not bad the only problem is that they don't explain properly which class would be the old plug, or the not adapted one, and which class or part of the code is the new versio or the socket that would accept the new pins, like the students list that accepts the interfaced version of the Students college or school. So the explanation would be something like this: You have a two pin blowdryer but you are in UK and the sockets accept 3 pins. You need an adapter. An adapter has two characteristics, first the part where the 2 pins go in the second part where the 3 pins go in the UK sockets and in the middle the 2 pins are connected to the 3 pins coming out. In this scenario the schoolStudent is the two pin blowdryer and CollegeStudent is the Hair straightener that your uncle gave you when he came from UK so no problem there! haha, just ignore it. The SchoolStudentAdapter like a physical adapter, remember, has two significant role, 1st is to accepts the 2 pins and 2nd is to go into the UK 3 pin socket. So blowdryer -> adapter -> UK socket in code schoolStudent -> schoolStudentAdapter -> studentsList : schoolAdapter initialises with schoolStudent meaning two pin blowdryer goes into adapter, then second part of adapter which needs to have 3 pins for UK sockets is achieved by implementing or conforming to the interface give you the 3 pins which then goes into the studentsList that accepts only Student interface implementations. Anyhow it was a great video, I also really liked the explanation about the legacy code and new code.
@Febulous18man
@Febulous18man 17 күн бұрын
Well said, charger example is so outdated and boring in the context of SW. std::to_string(int) is also a simple and good example of real SW world.
@ChandraShekhar-by3cd
@ChandraShekhar-by3cd 2 жыл бұрын
Thanks for the informative video, but the code part was not clear to understand, I got the anology but couldn't get the code example well.
@SudhakarReddyChannel
@SudhakarReddyChannel 2 жыл бұрын
Crystal clear explanation with simple example. Excellent video. Thank you
@sanketh768
@sanketh768 Жыл бұрын
Thank you mam, for the simple explanation
@VinayakKhairnar-bb7oc
@VinayakKhairnar-bb7oc 4 ай бұрын
How can Arrays.asList is example of adaptor?
@mdnadeemasgar6279
@mdnadeemasgar6279 Жыл бұрын
Hi Yogita, can you please upload the code online and share the url in the description. So that we can also try manipulating the code for the given design pattern.
@saumitrasaxena8470
@saumitrasaxena8470 2 жыл бұрын
Hi , I am following your series on Design Pattern and must say this Adapter Design Pattern is explained in a very good, impressive and conceptual way . No doubts at all. Thanks a lot !!!! and must say great example !!!
@nevilleraheemdavis5568
@nevilleraheemdavis5568 Ай бұрын
We use it in Java and Kotlin Android development
@abymathew575
@abymathew575 2 жыл бұрын
really nice and a simple presentation with a clear coding example. I'm a big fan of your tutorials
@swaminathbera6407
@swaminathbera6407 Жыл бұрын
You're one of the amazing teachers
@himanshuprusty6650
@himanshuprusty6650 2 күн бұрын
Very Good Example
@ShivamKendre-fc3su
@ShivamKendre-fc3su 6 ай бұрын
Understood. Great video
@TheClockmister
@TheClockmister 3 ай бұрын
Very insightful; some sources don't give this extra information...
@codeblooded6760
@codeblooded6760 Жыл бұрын
Can only one type of object get adapted to a specific required type of object? Like in this example the methods used to return are .getFirstName , .getLastName, which are used only in student class
@saisaideep-z9l
@saisaideep-z9l 10 ай бұрын
The Insurance example seems like a Factory design pattern . However, the explanation of student code gave good idea on this concept. Thankyou :)
@sachinmukherjee29
@sachinmukherjee29 2 жыл бұрын
Nice explanation. I have one doubt how the Arrays.asList() method uses this pattern? This is the code snippet of that method public static List asList(T... a) { return new ArrayList(a); }
@athulm8929
@athulm8929 8 ай бұрын
Good explanation
@punithckpunith2314
@punithckpunith2314 Жыл бұрын
Superb! Everytime I stuck at understanding something, I will come to social media. This time I stuck understanding adapter design pattern and divert myself to youtube. After watching this video I felt it I did a good job. Great example! I saw couple of articles and bought udemy course. Nothing worked for me. I felt worth to watch this video. I appreciate your effort on your creativity in using the example. The approach is neat, simple, elegant and higher ROI(time).
@eeat8669
@eeat8669 11 ай бұрын
Thank you
@Itsme1n1ly
@Itsme1n1ly 2 жыл бұрын
You explained in Layman terms. Very very nice. Thanks for it. Keep doing. When will you publish bridge design pattern? Also i want to know about message bus architecture. How to create app by following SOA or Microservces architecture.
@shankar7435
@shankar7435 7 ай бұрын
It would be nice if you would have mentioned Java language examples instead of passing that to the commentators.
@PaulPronabananda
@PaulPronabananda Жыл бұрын
Hi Yogita Thanks for the nice topic. Can you please let me know, which software you use for editing the videos?
@JK_SCIENTIST
@JK_SCIENTIST 4 ай бұрын
Analogy - A translator in between two foreign Language speaker :) The translator translates the words of the speaker and tells the listener what the speaker is giving as an output!
@debarghyasaha3415
@debarghyasaha3415 2 жыл бұрын
Very well explained video. THE insurance example is terrific. thanks.
@simiiv5021
@simiiv5021 6 ай бұрын
I have watched the whole series all day today and I am almost at the end. I have very clear understanding of SOLID, Design Partners and how to explain them in an excellent way using this series. Sweet, crisp, to the point and totally worth your time! Thank you for your content lady!
@sirfinsaan
@sirfinsaan 2 ай бұрын
nice
@alisen2785
@alisen2785 Жыл бұрын
I usually doesn't comment but this was an awesome explanation thank you for that.
@tanveer.shaikh
@tanveer.shaikh 2 жыл бұрын
Thanks, Yogita for such an easy and nice explanation, waiting for next videos
@riding.through
@riding.through 2 жыл бұрын
Thank you. This is really clear to understand. To me it looks like version of DAO, where instead of data, we are mapping methods.
@sankar1788n
@sankar1788n 2 жыл бұрын
Great example and explanation but now I have a doubt on what's the difference between an adaptor and a wrapper. Are they both same thing with just different names?
@akjoker79
@akjoker79 Жыл бұрын
Pleas use light theme in the IDE. It's difficult to follow the code
@gauravsalunke8652
@gauravsalunke8652 Жыл бұрын
Example were very useful. thanks for the video
@shubhamsamdani3503
@shubhamsamdani3503 Жыл бұрын
One Doubt: ESB service are based on adapter design pattern ?
@narenshalivahana1111
@narenshalivahana1111 Жыл бұрын
how good u r in teaching, best examples,easy to understand
@pravinjadhav8055
@pravinjadhav8055 2 жыл бұрын
I found this crisp and clear. Appreciate the content you are posting. One question I am a LAMP fullstack feveloper, I am thinking to learn Python instead of java for DSA. Whats you thoughts on this
@prashantrajawat2829
@prashantrajawat2829 2 жыл бұрын
Mam please complete remaining video of solid principles. Your explanation is amazing 👍
@aadeshsharma0001
@aadeshsharma0001 7 ай бұрын
Best examples, made it very easy to understand, thanks a lot.
@gauravsalunke8652
@gauravsalunke8652 Жыл бұрын
Thanks for this video. I went through multiple video to understand the adapter design pattern but your explanation is much simple and up to the point and easier to understand with the example you provide.
@danyald4880
@danyald4880 Жыл бұрын
Very nice content. Surprised its getting so less views
@dhalua
@dhalua Жыл бұрын
Great, plz continue the series and add more such great videos.
@CyberMew
@CyberMew 2 жыл бұрын
What does “solve for the same” mean? Solve what same?
@JK_SCIENTIST
@JK_SCIENTIST 4 ай бұрын
Crystal Clear Explanation!
@infinite639
@infinite639 2 жыл бұрын
very Nice explanation ❤️
@MrMuntasir66
@MrMuntasir66 Жыл бұрын
This is the way this pattern should be taught.
@shubhamMishraReal111
@shubhamMishraReal111 Жыл бұрын
Much better than the paid courses
@auroshisray9140
@auroshisray9140 Жыл бұрын
Thanks for putting this together!
@mandardeulkar6010
@mandardeulkar6010 Жыл бұрын
Amazing explanation:)
@5590priyank
@5590priyank 2 жыл бұрын
is adaptors same as converters?
@thetechmasum
@thetechmasum 2 жыл бұрын
Awesome 👍👍 loved the example
@abdulrenishr
@abdulrenishr Жыл бұрын
Very well explained
@sumitbasu3397
@sumitbasu3397 Жыл бұрын
Thank you Yogita
@coder3842
@coder3842 Жыл бұрын
Really good content
@TanishqAnand
@TanishqAnand Жыл бұрын
is this the last video?
@anjukumari-ib2md
@anjukumari-ib2md Жыл бұрын
Well explained
@chrispure7461
@chrispure7461 2 жыл бұрын
Thank you. For LLD interviews, I always learn SOLID principles and design patterns. But the application of those in solving design problems in interviews is getting difficult for me. Hope you cover 2-3 interview LLD questions and the steps and approaches to follow to solve them using all these SOLID and design patterns.
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 5 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 17 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2,1 МЛН
Adapter Design Pattern | Explanation with Code in Easy Way! ✌🏻
19:04
How I Mastered Low Level Design Interviews
8:41
Ashish Pratap Singh
Рет қаралды 77 М.
Adapter Pattern - Design Patterns (ep 8)
26:36
Christopher Okhravi
Рет қаралды 243 М.
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 279 М.
the TRUTH about C++ (is it worth your time?)
3:17
Low Level
Рет қаралды 714 М.
How to Check if a User Exists Among Billions! - 4 MUST Know Strategies
12:44
Новый уровень твоей сосиски
00:33
Кушать Хочу
Рет қаралды 5 МЛН