Design Patterns: Adapter and Façade

Поділитися
Вставка
  • Опубліковано 21 сер 2017
  • 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/skimedic/presentat...
    - Design Patterns: Elements of Reusable Object-Oriented Software book: www.amazon.com/Design-Pattern...
    - Head First Design Patterns book: www.amazon.com/Head-First-Des...
  • Наука та технологія

КОМЕНТАРІ • 12

  • @fwd79
    @fwd79 5 років тому +8

    Full list for this series:
    0. SOLID Design Patterns (start from here): ua-cam.com/video/agkWYPUcLpg/v-deo.html
    1. Design Patterns: Command/Memento: ua-cam.com/video/zRbHlDeon3E/v-deo.html
    2. Design Patterns: Strategy: ua-cam.com/video/QZIvlny1Onk/v-deo.html
    3. Design Patterns: Template Method: ua-cam.com/video/MfAvs0n9uMs/v-deo.html
    4. Design Patterns: Observer and Publish-Subscribe: ua-cam.com/video/72bdaDl4KLM/v-deo.html
    5. Design Patterns: Singleton: ua-cam.com/video/sbML3xFHRbI/v-deo.html
    6. Design Patterns: Factories: ua-cam.com/video/JEk7B_GUErc/v-deo.html
    7. Design Patterns: Adapter and Façade: ua-cam.com/video/XYa0rmRMZ1Q/v-deo.html
    8. Design Patterns: Decorator: ua-cam.com/video/6PPMR0GWrZQ/v-deo.html

  • @luafalcao2984
    @luafalcao2984 3 роки тому +1

    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.

  • @DanteS-119
    @DanteS-119 Рік тому

    This is great!!! I’d prefer sticking with weather because I don’t know Rocky and Bullwinkle but having many examples hammered in the concept.

  • @jamesallen74
    @jamesallen74 6 років тому +8

    As an expert on Rocky and Bullwinkle he really messed up that whole domain. I'm really upset LOL.

  • @fadidib8516
    @fadidib8516 Рік тому

    great stuff

  • @powerswish
    @powerswish 5 років тому +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.

  • @willl0014
    @willl0014 3 роки тому +1

    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

  • @MoatasemBakri
    @MoatasemBakri 5 років тому +2

    I just really were looking for a video that explains these pattern with real example at least from this channel.
    I'm really disappointed

  • @kenichimori8533
    @kenichimori8533 6 років тому

    Proof Right Hand Topology.
    片仮名 梵語、。
    Katakana Sanskrit.
    Osakana Russia.

  • @sailingjudo
    @sailingjudo 6 років тому +3

    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 6 років тому +1

    Holy Crack It Visual Studio.
    Allah