Liskov's Substitution Principle | SOLID Design Principles (ep 1 part 1)

SdĂ­let
VloĆŸit
  • čas pƙidĂĄn 22. 06. 2024
  • What is the Liskov Substitution Principle? In this series we talk about the SOLID design principles.
    đŸ’Ș Patreon Community
    / christopherokhravi
    📚 Products I Recommend
    geni.us/71ZXF

Komentáƙe • 378

  • @KawsarJami
    @KawsarJami Pƙed 2 lety +18

    I fully understood LSP when you said on 10:57 "they're trying to show us when we should not use Inheritance and when we shouldn't"

    • @abdullahbhojani4772
      @abdullahbhojani4772 Pƙed 2 lety

      exactly!

    • @linjustek
      @linjustek Pƙed rokem

      So the quote states, that we shouldn't use inheritance :D Or there is an error. :D. LSP is says that we should adhere to method argument and return types, when using implementation or when extending abstract declarations or overrides. Usually when you do not do that, but implement Interface with type declarations you get Type Error. 🙂
      And we have to understand that type declaration can be abstract or interface, so child classes can be a fit for as an argument or return type.

  • @MrWilde
    @MrWilde Pƙed 3 lety +16

    I have been watching online training videos for more than 15 years and the you can spot a great teacher when they have as much energy and enthusiasm as you do. Fantastic video

  • @waelsalama84
    @waelsalama84 Pƙed rokem +11

    Hey Christopher, Hope you're very fine!
    I got shocked why did you stop this serious.. where are other parts..??
    You're awesome teacher and really you've the skill of explain things in a very clear and easy way..
    please don't stop producing these kinds of videos.
    waiting for other parts .. really in a big need to them .. really appreciate your efforts .. Keep it up!

  • @NdamuleloNemakh
    @NdamuleloNemakh Pƙed 4 lety +108

    So basically it's, "whatever the parent can do, the descendants should be able to do that [and more]"?

    • @MilaBarross
      @MilaBarross Pƙed 3 lety +1

      Omg, thanks a lot!

    • @lordmorgoth7
      @lordmorgoth7 Pƙed 3 lety +20

      it's, "whatever the parent can do, the descendants should at least be able to do that"

    • @karthikeyancseskcet
      @karthikeyancseskcet Pƙed 3 lety

      @@lordmorgoth7 great words

    • @soumavanag5025
      @soumavanag5025 Pƙed 2 lety

      @@lordmorgoth7 golden words

    • @ipodtouch470
      @ipodtouch470 Pƙed 2 měsĂ­ci

      Yes but the big caveat is just because the child must do what the parent is able to do does not mean the child has to do it in the same fashion

  • @SakethSusarla
    @SakethSusarla Pƙed 4 lety +70

    unique perspective and wonderful deconstruction, thanks for sharing :)
    it's 2020, still waiting for part 2...

    • @ringoaikocascade
      @ringoaikocascade Pƙed 2 lety +7

      I am so excited for the part 2. Especially for the past several years I've been avoiding variance, covariance etc and could really use his intuitive explanation.

    • @michor10
      @michor10 Pƙed 2 lety +5

      Yup, we're all waiting for the rest.

    • @jfilipcic
      @jfilipcic Pƙed 2 lety +5

      Still waiting

    •  Pƙed 2 lety +6

      Is part 2 ever coming? We are all looking forward to it!

    • @davidzhou9834
      @davidzhou9834 Pƙed rokem +3

      It's 2022

  • @McSeeMo_
    @McSeeMo_ Pƙed 4 lety +41

    I imagine with the actual viral context you may have spare time to continue this series ! The crowd ask for it!

  • @radu5log76
    @radu5log76 Pƙed 6 lety +7

    Thank you. You have really helped me understand Design Patterns and now SOLID.
    You are not assuming we know what you're talking about and that really helps get your knowledge across.

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety +3

      Thanks! Your comment is super helpful :) Much appreciated :) Thanks for watching and for the feedback :)

  • @janabodu3392
    @janabodu3392 Pƙed 2 lety +1

    Mr Bean mastered design principles and became Christopher Okhravi...Great Explanation ...Thank you..

  • @RocckeFella
    @RocckeFella Pƙed 3 lety +9

    Bro you are doing a really good job. I really love the way you explain things.. more power to you.

  • @MontagoDK
    @MontagoDK Pƙed 6 lety +173

    part 2 ?

  • @davidecullen1
    @davidecullen1 Pƙed 5 lety +2

    Thank you! You helped me understand this principle the day before an interview!!

  • @guzideesra4743
    @guzideesra4743 Pƙed 4 lety +4

    I swear, you should be the Dean of my University. Thank you a lot Mister Bean

  • @hana-games
    @hana-games Pƙed rokem +3

    part 2 to save my life

  • @kinvain
    @kinvain Pƙed 3 lety

    Wow! It takes you only 16 minutes to explain me Liskov principle and finally I can understand it. You are simply amazing!

  • @Vendavalez
    @Vendavalez Pƙed 3 lety +2

    This is one of the best explanations for this principle that I have been able to find out there. For many of them I would walk away feeling like I understood everything that was being said, but not like a I learned something that I could apply, let alone ideas on how to apply it. I would love for this series to be completed if you have the chance or for you to address the topic as part of another series.

  • @shiblimohammadarafat6602
    @shiblimohammadarafat6602 Pƙed 6 lety

    It's indeed a great lecture! I have been trying to understand Liskov's Substitution Principle for a long time. Obviously I had some understandings which is correct but I also had some confusions as well. But your explanation is so clear that now I don't have any confusion about it. Thank you so much.

  • @jctkc
    @jctkc Pƙed 5 lety

    You are the best man!! I've watched all your videos about Design Patterns and now I'm watching this and your explanation is simply great!. Thanks a lot!

  • @salmanahmedkhan3979
    @salmanahmedkhan3979 Pƙed rokem

    Preparing for exam and this masterpiece is pop up. Great Explanation

  • @TheLifeRockss
    @TheLifeRockss Pƙed 5 lety +39

    2018 almost finished.. still no part 2? you can't do that to us mate :-)... Imagine Game of Thrones not releasing season 8

  • @tsvetanpetrov5971
    @tsvetanpetrov5971 Pƙed 2 lety

    Amazing! Usually, this is one of the hardest questions during interviews. Thank you for the hard work!

  • @c4stus
    @c4stus Pƙed 6 lety

    Great as always Christopher, love your videos and your way of explaining stuff, don't stop please :)

  • @giveexamples
    @giveexamples Pƙed 6 lety

    Learn the most difficult things while your brain stopped and doesn't work with Cristopher's magical videos. Thank you man.

  • @lda573
    @lda573 Pƙed 5 lety

    When you started to use different colors, Evrika! LSP started to make sense! good job! thank you

  • @yawar110
    @yawar110 Pƙed 6 lety +2

    Gist: The subtype MUST be able to do what its base type can do - Excellent clip! Keep posting good stuff.

  • @RamKumar-kv1fx
    @RamKumar-kv1fx Pƙed 4 lety

    I though I knew Liskov's Substitution Principle for around a year but its only today I understand it correctly. Thank you very much Christopher Okhravi

  • @StuartLoria
    @StuartLoria Pƙed 4 lety +1

    When I study I vocalize my ideas similar to how Christopher conducts his presentations. I love the demystification of concepts in order to allow more people to get the job done, and enjoy engineering, no reason to be selfish or arrogant, these youtubers are fighting the good fight I think.

  • @irgatyus3090
    @irgatyus3090 Pƙed 6 lety +1

    Thanks a lot man for your visionary approach. I'm about to get my dream job thanks to your educational channel. Keep up the good work.

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety

      Wow! Thats cool! Congratulations for the new job! 🙂🙂

  • @marcodallaba
    @marcodallaba Pƙed 4 lety

    Please continue this series, you're awesome!

  • @asharnavya
    @asharnavya Pƙed 5 lety +1

    Really great way of teaching the things, i loved to learn from you.

  • @iwanttolearn8939
    @iwanttolearn8939 Pƙed 6 lety +2

    Thank you sir! :) I'll share this with my friends. very helpful.

  • @volkancoskun6934
    @volkancoskun6934 Pƙed 6 lety

    This is excellent. I look forward to new part. You're awesome

  • @babindakistvan
    @babindakistvan Pƙed 5 lety

    Thank you so much, really nice job!

  • @mikemihay
    @mikemihay Pƙed 5 lety

    Thank you! Please continue the tutorials!

  • @jg5645
    @jg5645 Pƙed 5 lety +37

    Chris

  • @saurabhshukla4900
    @saurabhshukla4900 Pƙed 4 lety

    This video has useful content worth just 2 mins.

  • @soufrk
    @soufrk Pƙed 6 lety +1

    Really makes it's simpler to understand !! Way to go

  • @Mochilador
    @Mochilador Pƙed 6 lety

    You rock! Thank you for these videos!

  • @sunnyshekhar862
    @sunnyshekhar862 Pƙed 5 lety +1

    Just discovered your channel... And my my, What a fine job you have done explaining these concepts. I am from a non-Computer Science Background and even I was able to understand the logic in one go !!
    Seems like it's been more than an year that you did the 1st episode... Not sure why you dropped the Series... but like me many would love to see the 2nd and subsequent episodes in this series. 😇

  • @abhilashbandi3866
    @abhilashbandi3866 Pƙed 6 lety +1

    Thanks for this :)
    I believe understanding SOLID will help in understanding Design patterns a lot better.

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety

      Thanks! I’m glad to hear :) It’s all connected indeed! :)

  • @0xlilx0
    @0xlilx0 Pƙed 5 lety

    Great explanation! Been reading about it for an hour and nothing made sense, but your video made it clear :)

  • @tejeshB19
    @tejeshB19 Pƙed 6 lety

    Amazing explanation !! Thanks a lot :)

  • @DominikRoszkowski
    @DominikRoszkowski Pƙed 6 lety

    Great, clear and funny as always! Thanks a lot

  • @raymondho2
    @raymondho2 Pƙed 6 lety

    Thank you so much! This is a great video to explain horrible LSP and really helped me to understand it :)

  • @MrVankog
    @MrVankog Pƙed 6 lety +1

    Great topic for a new series!

  • @ooredroxoo
    @ooredroxoo Pƙed 6 lety +3

    The funny thing is that you had a video on Liskov Substitution Principle posted on July 2016, that was the video that made me discovery your channel.

  • @shaimaaaltaay5183
    @shaimaaaltaay5183 Pƙed 6 lety +2

    OMG thank you so much I have an exam on Wednesday and I was lost with LSP principle.... I never enjoyed a lesson this much before thank you again

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety

      Aha. Great stuff :) How convenient :) :) Best of luck on the exam! 👍👍

    • @shaimaaaltaay5183
      @shaimaaaltaay5183 Pƙed 6 lety

      Christopher Okhravi I explained LSP to my friends before exam and they were like “oh that’s it 😼 it’s so easy” and I was like “yeah can you imagine “ and then gave them the link to your CZcams channel 😁
      BTW DIP came in the exam not LSP 😂
      except that scenario question with classes and DIP example I think I did well

  • @farzinfaghirnavaz1027
    @farzinfaghirnavaz1027 Pƙed 5 lety

    You are incredible, thanks for your time please keep it up

  • @Erdling123
    @Erdling123 Pƙed 6 lety +1

    Not only a great explanation, this was entertaining as well.

  • @tusherkhan7531
    @tusherkhan7531 Pƙed 3 lety

    Thanks for making it easy!

  • @opsherx
    @opsherx Pƙed 2 lety

    this guy is so excited hahah
    thank you man

  • @MultiPauwel
    @MultiPauwel Pƙed 5 lety

    Top Notch explanation, i'm not a native english speaker and i followed some guides on PluralSight, came here because i still didn't get.
    Now i heared u talking, it's darn simpel, once u get it!
    Thanks alot!

  • @aymanshaawat
    @aymanshaawat Pƙed 4 lety +2

    I really hope that you continue this series.
    Or at least start a new one talking about the same topic.

  • @harishnamjoshi
    @harishnamjoshi Pƙed 6 lety

    Chris you are a savior. Just love you videos.
    Waiting for next episode. 👍

  • @IlyaShap
    @IlyaShap Pƙed rokem

    Wow! You’re an awesome teacher. Thank you so much!

  • @mufizshaikh8439
    @mufizshaikh8439 Pƙed 3 lety

    It was very easy to understand with the help of your video. Thank you

  • @ireneuszzagan9725
    @ireneuszzagan9725 Pƙed 6 lety +1

    Reaaaaaally want to see the next episde :)

  • @josiahtobas9172
    @josiahtobas9172 Pƙed 5 lety

    Great explanation, thanks a lot.

  • @shubhankarpaul2740
    @shubhankarpaul2740 Pƙed 2 lety

    10:08 is what you have been looking for .... EXCELLENT !!!

  • @danielmilewski7659
    @danielmilewski7659 Pƙed 2 lety

    cannot wait for part 2 !!!!

  • @aymanshaawat
    @aymanshaawat Pƙed 6 lety +1

    Your videos are great
    Waiting for the rest of the playlist

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety +1

      Glad to hear :) New design patterns video coming Monday but after that hopefully another LSP video. Thanks for watching :)

    • @aymanshaawat
      @aymanshaawat Pƙed 6 lety

      Christopher Okhravi
      That is also good I am following the design pattern playlist too xD

  • @stekl.h
    @stekl.h Pƙed 3 lety

    Lovely lesson! Thanks

  • @JaspreetChhabra
    @JaspreetChhabra Pƙed 2 lety

    One of the best explanations...

  • @johnconnor9787
    @johnconnor9787 Pƙed 5 lety +1

    Please continue making these videos!)

  • @suhas002
    @suhas002 Pƙed 6 lety

    Great work man .. you are making things easy to understand.. waiting for other principles ..

  • @user-yi4zd6gh5h
    @user-yi4zd6gh5h Pƙed rokem

    the best explanation pf lsp. Please return to make these videos. You are one of the best teacher on youtube

  • @B-Billy
    @B-Billy Pƙed 6 lety +1

    Woow... That was awesome
    Please keep it up.. Great job
    And yeah, thanks for sharing.
    BTW, I missed that cat 🐈 LOL

  • @meetrjsingh
    @meetrjsingh Pƙed 4 lety

    Thank you for the wonderful explanation

  • @divyeshkumarbalar7732
    @divyeshkumarbalar7732 Pƙed 5 měsĂ­ci

    its been 4 years since i commented, still waiting for part 2 :)

  • @ronironion
    @ronironion Pƙed 4 lety

    Awesome man! So easily served!

  • @aprendemusica1931
    @aprendemusica1931 Pƙed 2 lety

    Love his passion teaching 💞

  • @djordjepetrovic2365
    @djordjepetrovic2365 Pƙed 3 lety

    Great lecture, thank you!

  • @kevinbenavides92
    @kevinbenavides92 Pƙed 6 lety

    Thank you Chris. Please continue this series on the SOLID principle if possible. Your the best.

    • @ChristopherOkhravi
      @ChristopherOkhravi  Pƙed 6 lety

      Thanks! Will do :) Thanks for watching :)

    • @UrzaRage778
      @UrzaRage778 Pƙed 4 lety

      You're fantastic at explaining things! (Much like Tim Corey) - where'd you go?!

  • @oeurnravuth9078
    @oeurnravuth9078 Pƙed 6 lety

    Great job for you!

  • @SunggukLim
    @SunggukLim Pƙed 6 lety

    New episode! Thanks

  • @gunarsekaran
    @gunarsekaran Pƙed rokem

    I watch many videos to understand about LSP, Finally i am got my inner peaceđŸ»

  • @matanmalka
    @matanmalka Pƙed 4 lety

    made my life easier! thank you

  • @zbigniewcwiakalski7253
    @zbigniewcwiakalski7253 Pƙed 3 lety +1

    Ech. That would be super cool to hear more about this in the next episode .... Hope it's going to be created eventually ;) regards

  • @hesam.m6538
    @hesam.m6538 Pƙed 3 lety

    Well done!

  • @pawekrzyzak4345
    @pawekrzyzak4345 Pƙed 3 lety

    I have still waited for the next one!

  • @vunguyenhoang3704
    @vunguyenhoang3704 Pƙed 2 lety

    really hope to see the next part. You are amazing broo

  • @felipeignaciocastrojara5065

    THANKS bro, love from Chile!

  • @annik4371
    @annik4371 Pƙed 3 lety

    THANKS!
    it was Cool

  • @iTo1ik
    @iTo1ik Pƙed 6 lety

    Excellent explanation!

  • @lauragriffiths3332
    @lauragriffiths3332 Pƙed rokem

    Oh my gosh! Thank you !!!!!!

  • @reyazahmed9320
    @reyazahmed9320 Pƙed 5 lety

    Please do the other parts Christopher. You are awesome!

  • @saurabhsuman4960
    @saurabhsuman4960 Pƙed 4 lety

    You are amazing. I love the way you explain. 👌

  • @cepi24
    @cepi24 Pƙed 2 lety

    Sir you are doing great job and seems you are enjoying it

  • @nitendratiwari3709
    @nitendratiwari3709 Pƙed 2 lety

    Hi Chris, really nice explanation, but you know best part @ 5:36 which my daughter of 3.5 years Liked a Lot, She didn't understand the principle but she likes ur expression a lot ...!!!,
    Thanks

  • @soniajain07
    @soniajain07 Pƙed 4 lety

    you rock! Looking forward for your pat2

  • @swatisingh8399
    @swatisingh8399 Pƙed 5 lety

    All your explanations are so good and simple , its like listening to a story , so interesting , although I see you don't have a part 2 for this :( , requested by a lot of users

  • @naito016
    @naito016 Pƙed 4 lety

    2020 year, after a lot of videos listening blah blah and blah about Liskov's Substitution, finally understand the Liskov Substitution Principle then I Think this video was awesome need the next one, it's pretty weird that CZcams is not showing part two on following video, go to authors channel, looking for the part two that never comes.

  • @bryancorea678
    @bryancorea678 Pƙed 3 lety

    Please continue this amazing videos

  • @jeffdosser4251
    @jeffdosser4251 Pƙed 6 lety

    Your vids are great. More ppl should be watching them.

  • @AustinCS
    @AustinCS Pƙed 6 lety +1

    Yea, I definitely need the second part lol

  • @theisegeberg
    @theisegeberg Pƙed 6 lety

    While watching your design patterns videos (I watched all of them, all of the way through..) - I wished that you would do the SOLID principles as well, and here we are :)

  • @cetiah
    @cetiah Pƙed 4 lety +2

    I just recently learned from one of your videos that the snail would speak, but it would have a NullSpeaking behavior that's returned when you run Speak() on the snail.

  • @yogini1351
    @yogini1351 Pƙed 2 lety +1

    Hello Christoph, You are awesome. I think I have watched almost all of your sessions on design patterns. This one is also amazing and simplified, but I didn't find the part 2 in this playlist. Could you please help with quick link?

  • @Chemaclass
    @Chemaclass Pƙed 3 lety

    This is great

  • @rupn9633
    @rupn9633 Pƙed 3 lety

    Very Unique way of explanation, I have see many videos on SOLID principles , this one standout. Great!!!

  • @georgebockari289
    @georgebockari289 Pƙed 5 lety +2

    I'd really love to see you pick this back up.