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

  Рет қаралды 44,923

sudoCODE

sudoCODE

Күн бұрын

Пікірлер: 68
@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 2 жыл бұрын
@@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
@simiiv5021
@simiiv5021 8 ай бұрын
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!
@klawtawar
@klawtawar 2 жыл бұрын
It's easy to understand and much better than paid courses. Thank you for making this
@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).
@SudhakarReddyChannel
@SudhakarReddyChannel 2 жыл бұрын
Crystal clear explanation with simple example. Excellent video. Thank you
@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.
@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 !!!
@swaminathbera6407
@swaminathbera6407 Жыл бұрын
You're one of the amazing teachers
@narenshalivahana1111
@narenshalivahana1111 Жыл бұрын
how good u r in teaching, best examples,easy to understand
@abymathew575
@abymathew575 2 жыл бұрын
really nice and a simple presentation with a clear coding example. I'm a big fan of your tutorials
@shatulbansal4756
@shatulbansal4756 Ай бұрын
Another real-time example is an adapter to convert XML to Json. Or a generic adapter to convert the different formats of responses provided by the server into the response format that the client expects :)
@debarghyasaha3415
@debarghyasaha3415 2 жыл бұрын
Very well explained video. THE insurance example is terrific. thanks.
@sanketh768
@sanketh768 Жыл бұрын
Thank you mam, for the simple explanation
@aadeshsharma0001
@aadeshsharma0001 9 ай бұрын
Best examples, made it very easy to understand, thanks a lot.
@dhalua
@dhalua 2 жыл бұрын
Great, plz continue the series and add more such great videos.
@ArjunVerma-lq4cf
@ArjunVerma-lq4cf 11 сағат бұрын
Very nice explanation
@saisaideep-z9l
@saisaideep-z9l Жыл бұрын
The Insurance example seems like a Factory design pattern . However, the explanation of student code gave good idea on this concept. Thankyou :)
@prithukathet193
@prithukathet193 16 сағат бұрын
best one on the internet.
@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.
@JK_SCIENTIST
@JK_SCIENTIST 6 ай бұрын
Crystal Clear Explanation!
@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.
@himanshuprusty6650
@himanshuprusty6650 2 ай бұрын
Very Good Example
@tanveer.shaikh
@tanveer.shaikh 2 жыл бұрын
Thanks, Yogita for such an easy and nice explanation, waiting for next videos
@JK_SCIENTIST
@JK_SCIENTIST 6 ай бұрын
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!
@gauravsalunke8652
@gauravsalunke8652 2 жыл бұрын
Example were very useful. thanks for the video
@alisen2785
@alisen2785 Жыл бұрын
I usually doesn't comment but this was an awesome explanation thank you for that.
@ankurcharan
@ankurcharan 2 жыл бұрын
hey, can you tell me how do you create animation?
@TheClockmister
@TheClockmister 5 ай бұрын
Very insightful; some sources don't give this extra information...
@shubhamMishraReal111
@shubhamMishraReal111 2 жыл бұрын
Much better than the paid courses
@MrMuntasir66
@MrMuntasir66 2 жыл бұрын
This is the way this pattern should be taught.
@akhileshthapliyal6536
@akhileshthapliyal6536 Ай бұрын
In your example you could have use the same analoy of hospital and insurance instead of students. I would have helped in understanding the concept even better :)
@Hsn-Ab
@Hsn-Ab Жыл бұрын
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 5 ай бұрын
I have the same question
@auroshisray9140
@auroshisray9140 Жыл бұрын
Thanks for putting this together!
@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.
@abdulrenishr
@abdulrenishr Жыл бұрын
Very well explained
@prashantrajawat2829
@prashantrajawat2829 2 жыл бұрын
Mam please complete remaining video of solid principles. Your explanation is amazing 👍
@sumitbasu3397
@sumitbasu3397 2 жыл бұрын
Thank you Yogita
@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); }
@thetechmasum
@thetechmasum 2 жыл бұрын
Awesome 👍👍 loved the example
@ShivamKendre-fc3su
@ShivamKendre-fc3su 8 ай бұрын
Understood. Great video
@mandardeulkar6010
@mandardeulkar6010 Жыл бұрын
Amazing explanation:)
@athulm8929
@athulm8929 10 ай бұрын
Good explanation
@danyald4880
@danyald4880 2 жыл бұрын
Very nice content. Surprised its getting so less views
@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.
@anjukumari-ib2md
@anjukumari-ib2md Жыл бұрын
Well explained
@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.
@PaulPronabananda
@PaulPronabananda Жыл бұрын
Hi Yogita Thanks for the nice topic. Can you please let me know, which software you use for editing the videos?
@infinite639
@infinite639 2 жыл бұрын
very Nice explanation ❤️
@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.
@coder3842
@coder3842 2 жыл бұрын
Really good content
@eeat8669
@eeat8669 Жыл бұрын
Thank you
@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
@VinayakKhairnar-bb7oc
@VinayakKhairnar-bb7oc 6 ай бұрын
How can Arrays.asList is example of adaptor?
@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
@shubhamsamdani3503
@shubhamsamdani3503 Жыл бұрын
One Doubt: ESB service are based on adapter design pattern ?
@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
@nevilleraheemdavis5568
@nevilleraheemdavis5568 3 ай бұрын
We use it in Java and Kotlin Android development
@sirfinsaan
@sirfinsaan 4 ай бұрын
nice
@CyberMew
@CyberMew 2 жыл бұрын
What does “solve for the same” mean? Solve what same?
@5590priyank
@5590priyank 2 жыл бұрын
is adaptors same as converters?
@TanishqAnand
@TanishqAnand 2 жыл бұрын
is this the last video?
@Febulous18man
@Febulous18man 2 ай бұрын
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.
@shankar7435
@shankar7435 9 ай бұрын
It would be nice if you would have mentioned Java language examples instead of passing that to the commentators.
Adapter Design Pattern | Explanation with Code in Easy Way! ✌🏻
19:04
Кто круче, как думаешь?
00:44
МЯТНАЯ ФАНТА
Рет қаралды 6 МЛН
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 30 МЛН
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
Рет қаралды 1,1 МЛН