The Adapter Pattern Explained and Implemented in Java | Structural Design Patterns | Geekific

preview_player
Показать описание

Today, we start enriching this series with Structural Design Patterns, and the first one we are going to detail and implement is none other than the Adapter Pattern.

Timestamps:
00:00 Introduction
00:20 What is the Adapter Pattern?
01:38 Adapter Pattern Implementation
03:02 The Adapter Pattern Class Diagram
04:13 Recap
04:51 Thanks for Watching!

If you found this video helpful, check other Geekific uploads:

#Geekific #DesignPatterns #AdapterPattern #StructuralPatterns
Рекомендации по теме
Комментарии
Автор

The best design patterns series i have ever found online . thank you so much for this masterpiece

animeu
Автор

A structural pattern I've struggled to understand for _years, _ beautifully explained in three minutes.
Now that I have a grasp of the concept, I can finally see the worth in the class diagram at 3:02

just-Banks
Автор

1st time -Watch video -> Ayeein 2nd time watch video -> Clearly understands the concept

tayyabsami
Автор

Good short video to make you understand the concepts. One thing I like the most is the reference to SOLID principle, I find that missing in other videos that I have seen. One thing that I would like is a little more detailed explanation with multiple examples if possible. Thanks Cheers!!

MaheshNair-vfcb
Автор

Your methodology is flawless man! Keep it up

alooooshm
Автор

I really liked your Design Patterns series. You talk super fast. Following you is little difficult but content is top notch.

jasper
Автор

Good stuff I liked the real life example

carlosjacobfield-sierra
Автор

One question though, isn't the IMultiRestoApp tightly coupled with the file type here? if tomorrow, although the UI still renders json data but the backend system changed the requirement from xml to csv, then we would need the adapter to convert CSV to JSON breaking the open-closed principle. Shouldn't ideally our IMultiRestoApp also be independent of file type?

himaninegi
Автор

This intermediate object(adapter) can also be used to provide a stable interface for similar components with different interfaces. But I guess that's a combination of the polymorphism and adapter patterns.

richardcarberry
Автор

Very good explaining, but i have a question: can't we link the client directly to the adapter, because in the video i can't quite see the necessity to use the Client Interface? For example, a Button (+switch() ) and a Lamp (+turnOn() and +turnOff() ), if we want to add a Kettle with the same functionalities, we can simply add an adapter Ibutton and the Lamp and Kettle classes can implement the interface Ibutton.

OussamaAQEBLI
Автор

Why is the relationship between Client and ClientInterface an association and not Inheritance ?
Client implements ClientInterface

anujabarve
Автор

Hi, i think in 2:54 you should write: new With FancyUIService instance in constructor argument.

Boyarsskiy
Автор

I hope this video is not sponsored by Zomato ? - An Indian. 😀

shubhampandey
Автор

your videos are good, but at certain point I felt there is no breather. I had to pause the video to go over some details.
Another point I miss is when to use which pattern. I feel sometimes there could be multiple ways of moving forward but which pattern to chose for simplicity ? is there some kind of rule that explains that ?

jigardoshi
Автор

I swear to God, you saved my ass so well that I am convinced you are the second coming of Christ

hayreddinbarbarossa
join shbcf.ru