Interface Segregation Principle

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

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

  • @kavindurandika2140
    @kavindurandika2140 5 лет назад +6

    Whoa..this is the best explanation that I have seen from you. Please if you have some time, Recap the Design Patterns tutorials like this fashion. This is the type we are expecting Thanks Avish

  • @srivathsgondi191
    @srivathsgondi191 2 месяца назад

    This was a very well explained video, with the right examples. Keep up the good work.

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

    One of the concise explanation...Thanks a ton

  • @Ibrocasthero
    @Ibrocasthero 7 лет назад +5

    This is awesome, straight and simple to understand. Thanks a lot.

    • @avishmsd1651
      @avishmsd1651 7 лет назад

      Thank you for watching the video. Really honored with your feedback

    • @joshuaamevinya8386
      @joshuaamevinya8386 6 лет назад +1

      I absolutely concur!
      Why do some people make simple concepts hard to understand now a days? The examples they use don't connect or serve as a continuation of the previous idea at all, so that you can get the entire picture of how all the ideas type together. I searched and searched even on youtube but everywhere I go, the same thing is repeated over and over. It's like they don't want you to understand it, although that's not really true.
      Assumptions are a killer when teaching a concept, in my book, unless it's pretty obvious that something fundamental can be assumed of the topic, in order to understand something else. Thank you sir for explaining thoroughly and using examples that are connected to each other in order to teach this web of software design concepts.

  • @shantilokappal3865
    @shantilokappal3865 7 лет назад +4

    Cool stuff. easy understanding and adapt into our daily work.. Thank you avish

    • @avishmsd1651
      @avishmsd1651 7 лет назад +1

      Thank you for watching the video. Really honored with your feedback

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

    Thank you for the explanations because of that I understand the ISP principle clearly!

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

    excellent explanation. thanks

  • @sandeepbrk
    @sandeepbrk 5 лет назад

    thanks .. for simple example. These principles are hard to get at first by complicated examples. Needs practice and experience..

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

    easy to understand

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

    Excellent tutorial. Thanks a lot.

  • @kamdemkakengne
    @kamdemkakengne 5 лет назад

    Thank you so much for your explanations! It's very clear!

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

    Nice explaining, thanks

  • @ashokkumargajula428
    @ashokkumargajula428 6 лет назад

    great video

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

    Thanks for this!

  • @denissalmeron2721
    @denissalmeron2721 6 лет назад +15

    You never mention that I have to inherit from multiple interfaces on HPLaserJet class

    • @kalimkhan4912
      @kalimkhan4912 5 лет назад +3

      you can inherit multiple interfaces just put a coma after the first interface
      for example:
      class exampleclass: interface1,interface2
      {
      }

  • @mdgosoddin192
    @mdgosoddin192 7 лет назад

    Excellent .....good explanation

  • @sunilgidwani6321
    @sunilgidwani6321 5 лет назад +2

    How will you handle the backward compatibility in case of Interface Segregation, if some client already implemented the interface. The above solution (Segregation of interface in small interfaces) will break the client code.

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

    is it not like just single responsibility principle, here are interfaces instead of classes?

  • @syedikramulla3693
    @syedikramulla3693 4 года назад +3

    what's the key difference between single responsibility and interface segregation principle. Both looks same.

    • @anonymous-di3fi
      @anonymous-di3fi 5 месяцев назад

      for SRP, you break down the interface to some other interfaces to ensure that each interface does its SINGLE responsibility on its own that if an interface is called IUser then it should have methods that are ONLY considered with the user.. so, it doesn't include anything related to errors for example. in other words, when you see a class's or an interface's name you should have a conclusion about its responsibility. For ISP, if you have a class for example that inherits from an interface, then it MUST USE ALL of the methods inside of it.. so you can't have a method in there which the class doesn't use or need.. so, for multiple classes and one interface for example, you break down the interface based upon what are the classes that need the same methods and use them all, and by that you have number of interfaces instead of one big interface that includes ALL of these methods. I hope it's clear now

  • @vishalpathak6061
    @vishalpathak6061 5 лет назад +3

    What is the difference between Single Responsibility and Interface Segregation principle?

    • @rajibsarker3729
      @rajibsarker3729 4 года назад +5

      Vishal Pathak violation of ISP is when you force a client to implement unsupported operations where in SRP you are putting all kinds of tasks in a single class.

  • @devenmhatre8224
    @devenmhatre8224 6 лет назад

    I wonder if this example follows Liskov, since neither HpLaserJet nor Cannon class are inherited from any parent. So it seems hard to achieve loose coupling.

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

    What is the difference Single Responsibility Principle and Interface segregation then ??? All was explained same - We want @kudvenkat to demonstrate it.

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

    I think SRP, LSP, ISP, these three are same.. Everyone having interface segregation for their needs..

  • @nitinlokesh6776
    @nitinlokesh6776 7 лет назад

    Nice ...

  • @frankng3111
    @frankng3111 7 лет назад

    Thanks Kudvenkat!

    • @avishmsd1651
      @avishmsd1651 7 лет назад

      Thank you for watching the video

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

    what is difference between SRP AND ISP both examples point same thing interface segregation.

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

    How can we implement this if our application uses Dependency Injection?

  • @hnkdln7307
    @hnkdln7307 6 лет назад +1

    Like what exactly is this different from single responsibility principle??

    • @adrianpop3202
      @adrianpop3202 5 лет назад +1

      The single responsibility principle applies to multiple cases meanwhile this principle is specific to interfaces and they address different problems.
      The single responsibility principle refers to objects having to do one single thing and the interface segregation principle refers to an object not having to deal with functionality it doesn't need by accessing a reference via / implementing an interface.
      The previous example he gave should have been with functionality separation in classes for the difference to be more obvious .

  • @adilyousuf3240
    @adilyousuf3240 7 лет назад +3

    I have a question Kudvenkat ? Is SRP examples and ISP example are same or related ?

    • @krishnavankadari
      @krishnavankadari 7 лет назад +1

      Adil Yousuf all solid principle are related to each other

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

    It is important to note that the code for the classes will need to be updated to implement the interfaces as follows:
    class HPLaserJet : IPrintScanContent, IFaxContent
    { ... }
    class CannonMG2470 : IPrintScanContent
    { ... }

  • @inter7322
    @inter7322 7 лет назад

    Hey Kudvenkat or anyone else can they please tell me what is needed to be a C# software engineer there is so much new stuff coming out I just want something that will allow we to create a cool desktop or mobile app please provide a curriculum. Im know c# reasonably well and SQL but dont know where to go from there and I need a job ASAP.
    I know you said to be a good dot NEt dev you need
    1. c#
    2.Dot net basics
    3. SQL server
    4.ADO.NET
    5.ASP.NET
    etc but Isnt it possible to develop apps without all that?

    • @avishmsd1651
      @avishmsd1651 7 лет назад

      Thank you for watching the video. We strongly recommend you to go through our playlist which addresses all your queries. ruclips.net/user/kudvenkatplaylists

  • @amitdixit2039
    @amitdixit2039 6 лет назад +3

    I think vankat can explain better

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

    Everything looks perfect but your course is breaking the rules of the SOLID principle for learning (not for coding) which says that no video should force you to watch another video in order to understand the concept fully... hahaha

  • @jeetu61
    @jeetu61 6 лет назад

    I am a regular viewer of kudvenkat channel. But this guy overacts a lot. Bit bored even the content is good but the way you are explaining is bit over

    • @jeetu61
      @jeetu61 6 лет назад

      @Samra Memon yeah may be you are right.. It's what i felt

    • @geekjobs4754
      @geekjobs4754 6 лет назад +2

      I think you are a kind of person who needs everything to be spoon feeded. He explained everything nicely. Are you really a developer?