Adapter Design Pattern | System Design Media player | Object Oriented Programming

Поділитися
Вставка
  • Опубліковано 13 жов 2024
  • System design with Decorator Design pattern is a common design pattern where we need to make 2 interface work together which ideally are not compatible with each other. This video is a low level system design of a media player which follows object oriented programming, design principles.
    Here I have explained how you can use Adapter Design Patterns to implement a system which initially supports only mp3 format to support advanced formats as well.
    Tutorial is a hands on implementation of design pattern implementation of Adapter design pattern.
    Software Systems design for cracking the coding job interview includes knowledge of software design patterns. System design interview questions target on object oriented programming language test and includes design pattern interview questions and algorithms.
    You can buy us a coffee at : www.buymeacoff...
    system design: • System Design | Distri...
    DS for beginners: • Arrays Data Structures...
    leetcode solutions: • Leetcode 84 | Largest ...
    github: github.com/The...
    facebook group : / 741317603336313
    twitter: / granthtech

КОМЕНТАРІ • 14

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

    Gone through all of your system design videos. Find them very very helpful for system design interviews. Thanks a lot for helping 😊

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Glad it was helpful. Do like and subscribe and share with your friends :)

  • @wrushasendakhane2280
    @wrushasendakhane2280 3 роки тому +5

    In MediaPlayerImpl, we could use Factory pattern to give us MediaPlayer object based on the format. Single Responsibility principle violated.

  • @DSAShots
    @DSAShots 2 роки тому +3

    Liskov substitution principal was voided

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

      There are no sub-classes involved here, can you please elaborate?

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

    Looking forward to it

    • @TheTechGranth
      @TheTechGranth  3 роки тому

      Hope it was helpful!!!

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

      @@TheTechGranth it is helpful. Thanks. Looking forward to more and even better videos. I'm glad unlike the most, you are not picking up petty superficial topics

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

      @@ngneerin thanks, do share with your friends and like and subscribe, that motivates 🙂

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

      @@TheTechGranth subscribed already. I will share with friends

  • @aditikaushik68
    @aditikaushik68 4 дні тому

    You repeated the DRY principle and you could have used strategy design pattern in a better way…answers to your question

    • @aditikaushik68
      @aditikaushik68 4 дні тому

      Looks like I am wrong. DRY did get violated though, one line of code could have been outside the if-else block, instead of duplication

    • @aditikaushik68
      @aditikaushik68 4 дні тому

      I really struggle a lot with choosing the right design pattern and approaching LLD problems, how do I change that?