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

Поделиться
HTML-код
  • Опубликовано: 10 дек 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 Год назад +4

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

  • @TheWaldleufer
    @TheWaldleufer 2 года назад +5

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

    • @geekific
      @geekific  2 года назад +1

      Glad it helped :)

  • @marcjavault7779
    @marcjavault7779 6 месяцев назад

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

  • @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: ruclips.net/video/HoA6aZPR5K0/видео.html. More videos are on the way! Stay Tuned!

  • @SaberFreeman
    @SaberFreeman Месяц назад

    your videos are underrated

  • @milanjolly3816
    @milanjolly3816 7 месяцев назад

    Great explanation! Thanks!!!

  • @crazydiymechanic9849
    @crazydiymechanic9849 Год назад

    Nice explanation, now I am hungry.

  • @gekobcint4973
    @gekobcint4973 9 месяцев назад

    dude thank you very much

  • @ryandburns1
    @ryandburns1 2 года назад

    Thanks for making this! Very informative.

    • @geekific
      @geekific  2 года назад

      Glad it was helpful!

  • @AmAn-uv7mo
    @AmAn-uv7mo Год назад

    you made it look easy thank you

  • @user-om1ud5hn3w
    @user-om1ud5hn3w Год назад

    very helpful, nice video!

  • @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!: ruclips.net/video/EdFq_JIThqM/видео.html

  • @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!

  • @Sk-ud9uy
    @Sk-ud9uy 7 месяцев назад

    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!

  • @pam.x
    @pam.x 4 месяца назад

    The Best

  • @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: ruclips.net/video/EdFq_JIThqM/видео.html. Cheers!

  • @AlansariMB
    @AlansariMB Месяц назад

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

  • @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

  • @xCaleb
    @xCaleb 9 месяцев назад

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

  • @kitkarson4226
    @kitkarson4226 Год назад

    2:00 looks like template method pattern

    • @geekific
      @geekific  Год назад

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

  • @tomosko2669
    @tomosko2669 2 года назад

    Pizza jokes. Love it. :D