Creating Great Low-Level Design by preferring Composition over Inheritance | OOPs Concepts

Поделиться
HTML-код
  • Опубликовано: 19 янв 2025

Комментарии • 44

  • @paraschawla3757
    @paraschawla3757 4 года назад +24

    Excellent work Udit , I read couple of books like clean code and refactor code which helped me in understanding importance of C over I.
    Your short video actually covered alot. Keep making videos on OOPS principle , design pattern. these are deep concepts but underrated and hard to find good material on this.
    Your videos on LLDs are gold, be it chess or Parking-Lot or if-else substitute.
    Please create Multiple Elevator LLD as per your availability and interest.
    Thanks a ton bdw.

  • @siddharthgaur7919
    @siddharthgaur7919 3 года назад +16

    This is GOLD!! Mark my word friend, this channel is gonna explode soon!! My heartfelt thank to you! 🙌

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

    Inheritance is for nouns, composition is for verbs. Simple.

  • @shrad6611
    @shrad6611 4 месяца назад

    Great video brother, You earn a subscriber, Please keep making these kind of videos so we can improve our designs for any projects

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

    Excellent video Udit, learning a lot from you.

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

    Wow. You explained it really well! Thanks!

  • @sarthakagarwal221
    @sarthakagarwal221 3 года назад +12

    Super content.
    Sad to see when people who just provides some unnecessary roadmaps and give gyaan on how to clear FAANG interview have lakhs of views while someone like you who is actually creating awesome content that will actually help a lot of us to prepare for interviews or to become a better software engineer is not getting enough views.
    Even if you look at your latest video where you were explaining how to prepare for DS & Algo and also used "Roadmap" in your title got you more than 1000 views in just 2 days whereas this video which was put up 3 months ago has just 1.2k views .
    Maybe people just want to know what to learn rather than learning it actually.
    Anyways, you have my support.

    • @anomaly2104
      @anomaly2104  3 года назад +5

      Thanks a Sarthak. This means a lot to me.
      Sometimes, I also feel that I should stop putting time into this as people are not watching it. But then comments like yours keep me moving. Thanks again :)

    • @shashankmittal8820
      @shashankmittal8820 3 года назад +2

      @@anomaly2104 Brother Don't Stop making these types of videos. I have recently been through the interview process for a Giant and Rejected for not-so-good LLD. Was trying to figure out the solution and issues to my Interview Problem but couldn't figure out and this video gave me the real issue that I messed up. So I can just say Keep Going as you are helping people directly or indirectly. Great Efforts!!

  • @purusewda8112
    @purusewda8112 11 месяцев назад +2

    Awesome concept, really helpful video

  • @anishprasad7024
    @anishprasad7024 3 года назад

    Hey Udit Sir don't stop creating awesome content like this ..
    Its nice to explain LLD by using some puzzle like this one .
    Please keep posting important concept in this manner.
    This actually helps us visualise better rathan than directly designing the full LLD (Chess , Parking Lot) .
    This kind of video will help us understand better, why you have used ? what you have used in the Parking lot and Cache LLD videos.

  • @yaaarrahullll
    @yaaarrahullll 3 года назад

    Awesome Content Udit. Loved it really. :) Keep up

  • @jainso
    @jainso 3 года назад

    Great Content. Thanks a lot for explaining in detail with examples.

  • @naveenrajdurairaj
    @naveenrajdurairaj 3 месяца назад

    Great explanation❤

  • @piyushvaidya5537
    @piyushvaidya5537 3 года назад

    Underrated channel....keep it up don't stop.❤️❤️

  • @sanjeeth2189
    @sanjeeth2189 3 года назад

    Underrated Channel.

  • @realisticsystems
    @realisticsystems 4 года назад

    Great work on LLD, please keep doing more videos on LLD as resources are very less on the topic and your knowledge of Design is pretty solid!

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

    Top Notch Content !!!!

  • @sittuk4679
    @sittuk4679 3 года назад

    Hi Udit. I stumbled upon your channel randomly and i found it very very insightful and helpful. Your video covered lots of doubt that i had while reading lots of books. Thanks a lot. Can you please make a video on what are the popular design patterns that every developer must know?

  • @hrishikeshkulkarni2856
    @hrishikeshkulkarni2856 4 года назад

    Great content as always!

  • @charan775
    @charan775 3 месяца назад

    congrats on staff engineer at google bro.. waiting for interview experience blog

  • @Manishsharma-tj4nn
    @Manishsharma-tj4nn 4 года назад +1

    Your videos are awesome...
    I have topic for your videos queue... Please do live stream on low level design or where you will develop from scratch. I am a developer with 2 + years and i need a video like that.

  • @priyanshgupta6830
    @priyanshgupta6830 3 года назад

    Awesome content!!

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

    It's just excellent.

  • @amansingla2112
    @amansingla2112 3 года назад

    Much needed 👍

  • @VijaySharma-hw4kv
    @VijaySharma-hw4kv 4 года назад +5

    or we can call it strategy pattern? though nicely explained. Thanks

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

    Composition for object modeling and inheritance for event handling is best.

  • @umangmalhotra1222
    @umangmalhotra1222 4 года назад

    Find your video so useful and informative.

  • @vaibhavwalekar8236
    @vaibhavwalekar8236 4 года назад +2

    Good Job Bro.I do have one query, In composite design of chess, what if we make Piece class as Abstract, and then create other classes like, Rook, Queen, Pawn, Horse, Bishop, King..
    so we won't have to pass moves to Piece Class manually.
    Does it looks good, and does this approach have any disadvantage ?

  • @SanjayGandhi-gq4be
    @SanjayGandhi-gq4be 2 года назад

    Abstract class v/s Interface ?

  • @ramkumar_balu
    @ramkumar_balu 4 года назад +1

    Good attempt..

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

    This guy is genius :)

  • @akashpandey7415
    @akashpandey7415 3 года назад

    awesome content

  • @mshingote
    @mshingote 3 года назад

    Hi Util, thanks for sharing the content. When you first encountered with this concept Composition over Inheritance and What resources you have referred to get into rabbit hole?

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

    Shouldn’t we have just a single variable Move inside Piece? Rather than List of moves? We’ll always have only move for a piece

  • @karthikbharadwaj7681
    @karthikbharadwaj7681 4 года назад +1

    Very good content. I get confused on whether to put behaviours in models that you create or segregate behaviours to an interface and create a service to implement that behaviour. which one would you prefer?
    Udit I want to check with you if you have free time can you review some of the code I have written for the design questions.

  • @charan775
    @charan775 3 месяца назад

    isn't this aggregation and not composition? cause moves can exist outside of piece

  • @ravikumar-yq5df
    @ravikumar-yq5df 3 года назад

    Awesome✌️😎

  • @life_ofcoder
    @life_ofcoder 4 года назад

    nice content

  • @saurabhjangir
    @saurabhjangir 3 года назад

    strategy pattern 👍

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

    tick tock tick tock