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

แชร์
ฝัง
  • เผยแพร่เมื่อ 29 มิ.ย. 2024
  • Support us on Patreon: / geekific
    GitHub Repository: github.com/geekific-official/...
    Stay updated on our videos by subscribing to the channel and hitting the like button!
    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:
    - Introduction to Design Patterns: • What are Design Patter...
    - UML Class and Object Diagrams: • UML Class and Object D...
    - SOLID Principles and Best Practices: • SOLID Design Principle...
    - Object-Oriented Programming Fundamentals: • What is Object-Oriente...
    - The Strategy Pattern Explained and Implemented in Java: • The Strategy Pattern E...
    - The State Pattern Explained and Implemented in Java: • The State Pattern Expl...
    #Geekific #DesignPatterns #AdapterPattern #StructuralPatterns

ความคิดเห็น • 20

  • @anime4u568
    @anime4u568 2 ปีที่แล้ว +29

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

    • @geekific
      @geekific  2 ปีที่แล้ว +2

      Wow! Thank you so much :) Glad you liked it!

  • @mattholsten7491
    @mattholsten7491 ปีที่แล้ว +3

    A gem of a video. Thanks!

  • @jasper5016
    @jasper5016 ปีที่แล้ว

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

  • @tayyabsami258
    @tayyabsami258 2 หลายเดือนก่อน

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

  • @richardoteri9746
    @richardoteri9746 ปีที่แล้ว

    Hidden gem. liked and subscribed

  • @answermy2107
    @answermy2107 ปีที่แล้ว +1

    simple and perfect

  • @alooooshm
    @alooooshm 2 ปีที่แล้ว +4

    Your methodology is flawless man! Keep it up

    • @geekific
      @geekific  2 ปีที่แล้ว

      Thanks for the support :) Will do!

  • @vengateshm2122
    @vengateshm2122 2 ปีที่แล้ว

    Thank You!

  • @richardcarberry831
    @richardcarberry831 11 หลายเดือนก่อน

    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.

  • @carlosjacobfield-sierra3759
    @carlosjacobfield-sierra3759 2 ปีที่แล้ว +2

    Good stuff I liked the real life example

    • @geekific
      @geekific  2 ปีที่แล้ว

      Glad you liked it :)

  • @shubhampandey8765
    @shubhampandey8765 5 หลายเดือนก่อน +4

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

    • @geekific
      @geekific  5 หลายเดือนก่อน

      Wish it was xD

  • @Boyarsskiy
    @Boyarsskiy ปีที่แล้ว +1

    Hi, i think in 2:54 you should write: new FancyUIServiceAdapter(fancyUIService); With FancyUIService instance in constructor argument.

    • @geekific
      @geekific  ปีที่แล้ว

      Hello! check 2:49 (the whole point is to not do that)!

    • @Boyarsskiy
      @Boyarsskiy ปีที่แล้ว

      I'm confused, how you will be test it in your unit tests? With DI you can mock FancyUIService, and test only adapter logic.

  • @jigardoshi2852
    @jigardoshi2852 2 ปีที่แล้ว

    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 ?

    • @geekific
      @geekific  2 ปีที่แล้ว +1

      Thanks! You know I always try to work on that, but it is so hard to pick a pace that suits everyone!!
      Concerning the "when" to use each pattern, I try to always start my videos with an example and then transform it using the pattern in question, kind of a before-after experience thought this might help, and yes you are right most of the time there are multiple patterns you can use and apply in a situation :)