Dependency injection fundamentals in C# - DI vs IoC vs DIP

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

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

  • @tiffaleyshon1126
    @tiffaleyshon1126 10 месяцев назад +42

    Dude! I'm a programmer of over 20 years and I've never seen it explained this clearly and concisely before.

    • @nick_stelmakh
      @nick_stelmakh 10 месяцев назад +2

      agree

    • @joofville
      @joofville 8 месяцев назад

      Agree and subscribed

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

      Super agreed. Im loving this guy now. #Subscribed

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

      ME 3 Excellent Description.

  • @mohannadqa5101
    @mohannadqa5101 10 месяцев назад +5

    5:06
    Man, finally it clicked. I'm so happy thank you.
    Dependency injection. Such a fancy word for an obvious concept.
    But now it makes sense, you are injecting a dependency rather than sticking with a specific dependency.

  • @IncompleteDeveloper
    @IncompleteDeveloper Месяц назад

    Very helpful that you distinguished DI, DIP and IoC container. Sometimes these are all lumped together, opening the door for confusion

  • @issamboutissante1542
    @issamboutissante1542 10 месяцев назад +5

    This video is amazing
    Can’t wait for the next one.

  • @AK-vx4dy
    @AK-vx4dy 10 месяцев назад +2

    Nice clear and practical take. Excellent job !

  • @BGivo
    @BGivo 10 месяцев назад +2

    Love your recent videos. Thank you!

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

    Your content is great. I am following you since a year and I have learned alot. Surely gonna buy those courses.

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

    This is the best video explaining those concepts. Amazing, thank you.

  • @dhmilmile1
    @dhmilmile1 10 месяцев назад +4

    Thanks for the great explanation.

  • @theanachronism5919
    @theanachronism5919 10 месяцев назад +1

    Awesome! Maybe I ask what you use for drawing on the screen during the screen record?

  • @flavioboscarol1555
    @flavioboscarol1555 11 дней назад

    told slightly "fast" :) ...but well done and complete....thanks for the excellent explanation.

  • @itsgddemon7573
    @itsgddemon7573 10 месяцев назад +1

    Could you consider making a video about what is the difference between making the validation inside the valueobjects, entities and with fluentValidation, could we mix and match these validations and what is the best approach.

  • @thijsvandervegt3377
    @thijsvandervegt3377 10 месяцев назад +2

    Hey Amichai, have you ever thought about making videos about Modular Monoliths? Thanks for the video btw :)

  • @shahzadahmad-vg2ou
    @shahzadahmad-vg2ou 9 месяцев назад

    Bro, I was always confused between these terms, Thank you for this awesome video.

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

    Wow, I really needed this video, very clear explanation

  • @FredericMerouze
    @FredericMerouze 10 месяцев назад +1

    great explanation amichai, thank you :)

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

    At around 3min would that not be Abstraction instead of encapsulation?

  • @kamilmikua5794
    @kamilmikua5794 9 месяцев назад

    nice, we need more content like this, good job!

  • @adamsontag1874
    @adamsontag1874 10 месяцев назад +1

    Thank you for very nice and clean explanation.
    I have a few questions:
    1. As you need Service provider to be built, does that mean that you can register services only on startup of the application or is there a technique to safely register services during runtime ?
    2. Let's say I have DbContext from entity framework and I have two databases meaning they have two different connection strings. Is there a way to use EF with dependency injection in a way that would be able to resolve the correct database ?
    And again thank you for great explanation it was very helpful to me.

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

    hey, first of all thank you for the video. maybe quite an newbie question but how do you generate the classes and method so fast? is it a shortcut/key or is it something like copilot? thank you very much!

  • @FarmerWidmo
    @FarmerWidmo 10 месяцев назад

    Silly question, but what if GithubClient accepted some parameters as well? How would I register it in the DI container?

    • @PedroBarbosaRoman
      @PedroBarbosaRoman 10 месяцев назад

      Yes, I think you will have to do it. If you don't there could be an error in runtime possibly since the DI library he is using seems to be like that. There are also build time DI frameworks I think. Android developer here so take this with a grain of salt!

  • @hasithadhananjaya2806
    @hasithadhananjaya2806 Месяц назад

    5:35 end of DIP and start of IOC

  • @davidjiang7929
    @davidjiang7929 10 месяцев назад

    Another great lesson!
    Would you please consider making more videos on c# core concepts needed for .NET? 😊

  • @margosdesarian
    @margosdesarian 10 месяцев назад +4

    Hi Amichai, it would be great if you could slow down just a little bit - say 5%. Its a little hard to keep up at that speed :) OH dont worry, i discovered that you can run it at 75% speed., although you do sound as if you have had a few too many beers ...

    • @R3ap4r
      @R3ap4r 10 месяцев назад +4

      Standard procedure for me, Tim Corey -> Set speed to 1.25x , Amichai -> Set speed 0.75x == Learning curve exponential :)

    • @dashaenne
      @dashaenne 10 месяцев назад

      🤣

  • @JackFord322
    @JackFord322 10 месяцев назад

    What tool do you use to draw in your videos?

  • @Luiz-yo2qf
    @Luiz-yo2qf 8 месяцев назад

    Hi mate. Awesome video! thank you for the great explanation.

  • @devgenesis6436
    @devgenesis6436 10 месяцев назад

    what is the tool fro drawing diagrams in vscode

    • @devfric3149
      @devfric3149 9 месяцев назад +1

      It might be a tool on the video recording sofware but not sure what he is using.

  • @davood7497
    @davood7497 9 месяцев назад

    Clear and Concise !

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

    I could just say it's AMAZING

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

    Hi everyone, not to be "that guy" but I am a beginner in c# learning concepts and trying to build projects and I'm totally lost here. What are the other concepts, I should learn before coming to this video? Of course, I know classes and basic OOP, but I need this video to make me smile and not question my potential in becoming a SE :)

  • @Noone-bb5qh
    @Noone-bb5qh 9 месяцев назад

    I can’t thank you enough 🙏🙏🙏

  • @riccarrasquilla379
    @riccarrasquilla379 10 месяцев назад

    thanks for the video

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

    your missing timestamps for each one :/

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

    Thanks a lot!

  • @xerxesking6734
    @xerxesking6734 10 месяцев назад

    Awesome 👌

  • @daver94
    @daver94 10 месяцев назад

    Thanks ❤

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

    Awesome

  • @danielrobinson8629
    @danielrobinson8629 8 месяцев назад

    סרטון מעולה אחי, מאיפה האנגלית?

  • @cuongday9005
    @cuongday9005 7 месяцев назад

    skills of 9.0-IELTS Listener

  • @SpaceBrain-1
    @SpaceBrain-1 2 месяца назад

    My brain thanks you

  • @greekplayback
    @greekplayback 10 месяцев назад +1

    תודה אלוף ❤

  • @g3ff01
    @g3ff01 5 месяцев назад

    Go ahead and tell us: did you lose some bet so you had to go ahead and tell "go ahead and..." every time you go ahead and say a verb?