S.O.L.I.D. | Interface Segregation Principle feat. Kotlin

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

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

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

    Great explanation! As I'm in my pursuit of improving my architectural skills in programming, I've found your solid series very helpful! Can’t wait for the final part!

  • @kokowilly-id
    @kokowilly-id 4 года назад +1

    I like when you explain the history of it. subscribed!

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

    Wow, I really stopped almost at the end of the video and took a moment to think...but..what about default implementations, since we talk about kotlin here. And then I continued the video and 2 seconds later you mentioned it :D Great video series!

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

    Thanks for the explanations, they were really on point!
    A couple of suggestions:
    In your first example, you could have also made the FootbalScoreBoardIf implement the base Scoreboard interface. This way, your FootbalScoreboard could have implemented directly this interface instead of implementing 2 interfaces.
    Also, I would say you could increase the font size of your IDE editor, it really helps for those watching your code and explanations on smaller screens (or phones like in my case). Having a bigger font size for your code will also fill up the empty space in your editor during recording.
    Keep up the great work!

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

      Thank you very much for your comment!
      So, you can definitely do that, and inherit from the base interface, and it still is valid and actually less verbose which is a good thing. The reason I did not go with inheritance is because you have to be super sure about inheriting, that the sub-interface has a IS-A relationship with its parent interface, otherwise it can cause coupling down the line. In this particular scenario of course, footballScoreboard clearly IS-A scoreboard, so it is a good fit.
      Also, thank you for the advice for smaller screens, I will keep it in mind in the next one!
      Have a great day :)

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

    👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍

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

    Very nice your didatic!