Design Patterns: Adapter and Façade

  Рет қаралды 17,483

Microsoft Visual Studio

Microsoft Visual Studio

Күн бұрын

This is the seventh of an eight part series where Robert is joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Adapter and Façade patterns. The Adapter pattern allows the interface of an existing class to be used as another interface. The Façade pattern enables an object to provide a simplified interface to a larger body of code, such as a class library.
Resources
- Sample code: github.com/ski...
- Design Patterns: Elements of Reusable Object-Oriented Software book: www.amazon.com...
- Head First Design Patterns book: www.amazon.com...

Пікірлер: 11
@fwd79
@fwd79 5 жыл бұрын
Full list for this series: 0. SOLID Design Patterns (start from here): kzfaq.info/get/bejne/l82biryBusmwoJs.html 1. Design Patterns: Command/Memento: kzfaq.info/get/bejne/sLiSe891ytXSY3k.html 2. Design Patterns: Strategy: kzfaq.info/get/bejne/h8B5qc-f3peznp8.html 3. Design Patterns: Template Method: kzfaq.info/get/bejne/g8xxqdZh05_Zfac.html 4. Design Patterns: Observer and Publish-Subscribe: kzfaq.info/get/bejne/bZiSl8R10ZqvfIE.html 5. Design Patterns: Singleton: kzfaq.info/get/bejne/qch9f5apq662kn0.html 6. Design Patterns: Factories: kzfaq.info/get/bejne/gKubaqWQrLupopc.html 7. Design Patterns: Adapter and Façade: kzfaq.info/get/bejne/jr-RY9Wet7O-YYU.html 8. Design Patterns: Decorator: kzfaq.info/get/bejne/bLaAgLVhrL3WioU.html
@luafalcao2984
@luafalcao2984 4 жыл бұрын
Awesome, awesome stuff! The level of explanation was great and the real examples talking about e-commerce helped me figure out about the scenarios that I can apply these patterns.
@powerswish
@powerswish 5 жыл бұрын
I say use a real domain and handwave any criticism as "we're just keeping this simple for the example...blah blah." At least you used something tangible like Rocky and Bullwinkle. A major pet peeve of mine is when people use "foo" as an example. That does nothing to advance my understanding, because I still wouldn't know what foo.bar() is trying to accomplish. Contrast that to _squirrel.fly() or whatever. That helps with the mental connection that it matches up with a move() method or whatever in an adapter.
@jamesallen74
@jamesallen74 7 жыл бұрын
As an expert on Rocky and Bullwinkle he really messed up that whole domain. I'm really upset LOL.
@willl0014
@willl0014 3 жыл бұрын
I think no sticking to the weather example just make a disservice to the example. This abstract example just put an unnecesary layer for the viewer to follow
@fadidib8516
@fadidib8516 2 жыл бұрын
great stuff
@MoatasemBakri
@MoatasemBakri 5 жыл бұрын
I just really were looking for a video that explains these pattern with real example at least from this channel. I'm really disappointed
@sailingjudo
@sailingjudo 6 жыл бұрын
You guys should *really* pick an example and stick with it. This video is a mess switching between Bullwinkle and a weather app.
@kenichimori8533
@kenichimori8533 7 жыл бұрын
Proof Right Hand Topology. 片仮名 梵語、。 Katakana Sanskrit. Osakana Russia.
@kenichimori8533
@kenichimori8533 7 жыл бұрын
Holy Crack It Visual Studio. Allah
Design Patterns: Factories
25:26
Microsoft Visual Studio
Рет қаралды 54 М.
Design Patterns: Decorator
17:21
Microsoft Visual Studio
Рет қаралды 25 М.
English or Spanish 🤣
00:16
GL Show
Рет қаралды 8 МЛН
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,3 МЛН
Joker can't swim!#joker #shorts
00:46
Untitled Joker
Рет қаралды 41 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 15 МЛН
Adapter Pattern - Design Patterns (ep 8)
26:36
Christopher Okhravi
Рет қаралды 242 М.
Design Patterns: Command/Memento
31:08
Microsoft Visual Studio
Рет қаралды 34 М.
Command Pattern - Design Patterns (ep 7)
39:12
Christopher Okhravi
Рет қаралды 268 М.
Design Patterns: Observer and Publish-Subscribe
18:18
Microsoft Visual Studio
Рет қаралды 23 М.
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 543 М.
Apple удивляет! Даже на Андроид такого нет!
0:42
ÉЖИ АКСЁНОВ
Рет қаралды 569 М.
Как правильно светить смартфоном?
0:18
Люди.Идеи, общественная организация
Рет қаралды 583 М.
ИГРОВЫЕ НОУТБУКИ ОПАСНЫ? 😮
0:45
KEKTAR
Рет қаралды 171 М.
Сделал из зарядного устройства нечто!
0:48