The Mediator Pattern Explained and Implemented in Java | Behavioral Design Patterns | Geekific

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 ต.ค. 2024

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

  • @steveo5946
    @steveo5946 10 หลายเดือนก่อน +3

    Your videos are so good. I wish you were my design patterns prof. Your 6 to 10 minute videos are waaaaaaay more valuable than my professor's hour of lecture 🙂

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

      Glad to be of help! Thanks a lot for the support

  • @higherstr
    @higherstr 10 หลายเดือนก่อน +3

    You should have shown the UML class diagram of your example

  • @b0606089
    @b0606089 ปีที่แล้ว +5

    This login example is hard to understand. I watched it two times, still didn't get it.
    Why a login button should be generic?
    A button for say Register can be different from a button for login
    and both classes can extend a button interface and do independent job.
    You can implement airplane example.

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

      Hello, thanks for the feedback and sorry to read that! Will keep this in mid for future videos :)

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

    Great video but I'm finding quite complicated to understand something on the example used in 3:18, the LoginButton constructor method, should also set the mediator? meaning that the Dialog class should instantiate a the LoginButton using itself as parameter?

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

      The mediator is set with the help of the setter method. I am not sure I got your question!

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

      @@geekific I understood with a different video from you, this one is missing the main method, where you usually set the mediator. Thank you for all this teaching!

  • @alilat.tech.dz.advisor
    @alilat.tech.dz.advisor ปีที่แล้ว +4

    Your video's are just amazing !!! but for this one I find it so difficult to understand. :(

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

      Please let me know which parts were confusing for you so I can help! Cheers :)

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

    The code in this one doesn't feel quite right. The whole point of mediator is to encapsulate communication between colleagues . The example used here though not technically incorrect, didn't capture that clearly for learners, since only one colleague(LoginButton) is calling the mediator. I had to watch another video to get it.

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

      Thanks for the feedback! Will keep it mind for upcoming videos :)

    • @AlejandroGarcia_elviejo
      @AlejandroGarcia_elviejo 6 หลายเดือนก่อน

      What should I google to find the other video?

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

    Since all design patterns involves interfaces. I find personally difficult to grasp it. May be I should read again and again.

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

      Hey man :) An interface in Java just defines the behaviors a class must implement, it says what an object should do but not how it should do it! I suggest you take a look at the OOP Fundamentals video: th-cam.com/video/Vfk6sExu8-4/w-d-xo.html and Design Patterns Introductory video: th-cam.com/video/mE3qTp1TEbg/w-d-xo.html before diving in the actual pattern videos. After these, you can start by watching the Creational Patterns Series, as they are usually "easier" to grasp if you are getting started with design patterns. If you need anything else let me know! Cheers!

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

    Very difficult to understand please use some highlighting arrows when you’re explaining each part of code

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

      Thanks for the feedback! Will try to do my best!