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

Поділитися
Вставка
  • Опубліковано 16 гру 2024

КОМЕНТАРІ • 36

  • @jaanaan143
    @jaanaan143 Рік тому +3

    I have never been able understand design pattern so clearly. Thank you so much from bottom of my heart.

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

      We're here to help! Thanks for the support :)

  • @aravindankarthick2066
    @aravindankarthick2066 2 роки тому +8

    Best explanation in YT for bridge pattern

    • @geekific
      @geekific  2 роки тому

      Thanks a lot! Glad you think so :)

  • @phybriso
    @phybriso 2 роки тому +4

    I never understood this pattern before, but now it is clear what is about.
    Thanks

  • @marcjavault7779
    @marcjavault7779 6 місяців тому

    All informations I needed, no less, no more, in five minutes. Thanks a lot mates

  • @TheWaldleufer
    @TheWaldleufer 2 роки тому +5

    Now I finally got, what the Bridge Pattern is actually about! Thanks!

    • @geekific
      @geekific  2 роки тому +1

      Glad it helped :)

  • @SaberFreeman
    @SaberFreeman Місяць тому

    your videos are underrated

  • @engsalahmahmoud2418
    @engsalahmahmoud2418 2 роки тому

    Tanks, finally I Understand bridge pattern

  • @Hamza-Shreef
    @Hamza-Shreef Рік тому +1

    I would be so glad if you make an owesome series like this discussing solid principles in detail.
    Thank for the great explaination and keep rocking ❤️❤️

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

      Thanks a lot for the support! You can start by taking a look at: ua-cam.com/video/HoA6aZPR5K0/v-deo.html. More videos are on the way! Stay Tuned!

  • @milanjolly3816
    @milanjolly3816 7 місяців тому

    Great explanation! Thanks!!!

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

    Nice explanation, now I am hungry.

  • @AmAn-uv7mo
    @AmAn-uv7mo Рік тому

    you made it look easy thank you

  • @gekobcint4973
    @gekobcint4973 9 місяців тому

    dude thank you very much

  • @ryandburns1
    @ryandburns1 2 роки тому

    Thanks for making this! Very informative.

    • @geekific
      @geekific  2 роки тому

      Glad it was helpful!

  • @user-om1ud5hn3w
    @user-om1ud5hn3w Рік тому

    very helpful, nice video!

  • @pam.x
    @pam.x 4 місяці тому

    The Best

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

    hello, Ty so much for the video the info on this series is awesome but i got a question -> the bridge here is the Abstract Class Restaurant?? i believe make more sense that the American - Italian Rest works as a bridge cause connect [ Pizza - Restaurant]

  • @msaedma
    @msaedma 9 місяців тому +1

    I'm little confused here because it looks like Factory pattern right?

    • @geekific
      @geekific  9 місяців тому

      Check our video on factories, and let us know how we can help!: ua-cam.com/video/EdFq_JIThqM/v-deo.html

  • @Sk-ud9uy
    @Sk-ud9uy 8 місяців тому

    Can't figure what does the "pizza.SetToppings" mean. or, more specifically what is the " .SetWhatever ". I know what it should do, but it does not work, it says that it needs to be declared previously, but where should I declare it, how can I change that string while the object is being made?
    My code gives "null" where all the toppings, sauce and crust types should be. Plz send help!

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

    It seems that the bridge pattern is the strategy pattern (the pizza as a strategy through DI), with an extra abstraction for the Restaurant(the class implementing the strategy), is this observation correct?
    Thank you for these videos, they are great!

  • @AlansariMB
    @AlansariMB Місяць тому

    Great video!
    you give me a Jordanian vibes, am i mistaken?

  • @berkackgoz7825
    @berkackgoz7825 2 роки тому

    Thanks for the explanation!
    A quick question, is this pattern viable for dependent abstractions and implementations ? I think I have a case which I can apply bridge pattern to refactor it but I'm not sure yet.
    In the case of restaurant - pizza example, is it possible to use this pattern when we have to do different sauce logic for American Veggie Pizza vs Italian one?
    if we were to write this with conditionals, we would say:
    if(american && pizza.type == "Veggie"){
    //logic
    }
    But of course this leads to non-extensible code.
    If bridge cannot be applied in this case, is there any pattern that can be helpful?

    • @geekific
      @geekific  2 роки тому

      Glad it was helpful!
      Am not sure I really got ur question, but if you wanted to do something specific for the Italian Veggie Pizza Sauce, all you have to do is add an additional method at the level of the pizza that deals with sauce instead of just "setSauce" and inside the Italian restaurant u'll insert additional logic there and call the method.
      When you check the type of the pizza inside the restaurant you break the contract of the pattern and make it closeable for extension. Remember as you said, here we are moving in independent dimensions. If you wanted to create products based on a certain dependency between them (if I got you right) I suggest you check our video on the Factory Method Pattern: ua-cam.com/video/EdFq_JIThqM/v-deo.html. Cheers!

  • @kiwy1257
    @kiwy1257 Рік тому +1

    But the way you described the problem easily leads to the Abstract factory design pattern.

    • @geekific
      @geekific  Рік тому +1

      A lot of problems can be solved by applying multiple patterns, the main aim of these videos is to explain the pattern itself :)

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

      @@geekific it’s okay, most of them were helpful I was just pointing out a possible source of confusion

  • @kitkarson4226
    @kitkarson4226 2 роки тому

    2:00 looks like template method pattern

    • @geekific
      @geekific  2 роки тому

      It is pretty easy to confuse patterns! Keep digging :)

  • @xCaleb
    @xCaleb 9 місяців тому

    Turns out all I needed to be able to understand this pattern easily was a pizza example 😂

  • @tomosko2669
    @tomosko2669 2 роки тому

    Pizza jokes. Love it. :D