Dependency Injection & Inversion of Control
HTML-код
- Опубликовано: 26 сен 2024
- Please support me on Patreon: / thesimpleengineer
/ thesimpengineer / schachte
ryan-schachte.com
Don't forget to subscribe! ➨ Website -
➨ New Video! - • Docker Client, Images ...
➨ / the-simple-engineer-80...
➨ Github - github.com/sch...
---------------------------------------------------------------
This week, we're going to talk about the topic of Dependency Injection in Object oriented code. We will implement a solution in Java. You don't need a fancy container to do it, it's actually quite simple to do manually! We will look at how frameworks like Spring use these principles in their dependency injection container.
What do you guys want to learn next?
everything that is not language specific (Design patterns, SOLID, etc..)
@@stephane3115 Cool. I'll probably do a SOLID overview video and then separate deep dives like this one in a mini series! Thanks!
@@TheSimpleEngineer Sounds awesome! Looking forward to it!
Dude, I just wanted to let you know that your explanation is so FREAKING awesome, I dont why you have such few views, just keep up the good work, you gonna make it.
Hard luck
P.S.: I would love to see some generic videos about concepts that every software engineer should know
too fast, 40% not clear
Fantastic explanation! So many DI and IOC explanations, but none of them seemed to convince my logic. Your video made the concept so easy to understand. Thanks
Glad to hear!
After a few hours of watching videos and reading articles, this has finally made the bulb of my brain turn on and understand exactly what IOC and DI are. The fact that you uploaded this a little more than a month before I needed it makes it even more amazing to me. Thanks a lot, buddy!
Dude, congrats... I've watched about 10 IoC or dependency injection videos, and this is the most comprehensive one yet... Cheers!
Easily the best explanation I have seen, simple, succint and thorough - well done
thanks for showing the problem with constructor injection. 😊
I watched tutorials, read books, followed documentation, but this fit me so well. Thank you very much! People could learn a lot from you in one day a lot.
It was extremely easy to understand. It's an excellent lecture!
Thank you!!
Finally a dude that explains the basic concepts and then actually shows the practical use.. congrats my dude.
Thanks for not spending 45 minutes on an introduction at the preschool level to what the concept of "depending" means in life in general. Much appreciated. You got right into the meat while still going at a level a beginner could understand. Much appreciated.
Oh man, I watched my instructor's video 3 times, didn't get the concept. But you made me understand everything within 8 minutes. I think the way you code and shows example is really helpful. Hats off!
The year is 2024 and this is the best explanation for IoC... appreciate man
I was very confused with this IoC concept and watched many videos on RUclips and nobody explained it better than you.
I wish I could give thousands of likes to this video.
Damn, I've been using Java for over 7 years now and I haven't fully grasped Dependency Injection/Inversion of Control until I found your video. I just discovered your channel and this video and it is very simple to understand. I think you are on par or might even be better than JavaBrains. Definitely, better than other RUclipsrs who teach Java technologies and tools.
Thanks for the kind words.
Men your voice is very clear, to be honest everything was just clear! very good understanding
Very helpful vid. Thnx.
@8:50, the issue you introduced - of having 2 databases - can easily be resolved by employing a façade instead of DI.
I can't believe I watched a lot of videos about DI and IoC in Laravel and still couldn't understand the concept and now I find your video about the same concepts in Java and it's all crystal clear out of a sudden. Your explanations were so good. Thanks a thon!
you are an amazing teacher with great pace and tone of voice and you really know how to communicate important information in a simple easy to understand way. thank you!
After hours of wasting my time on different articles and videos, I finally understood from this video. Thanks a lot.
I've listened to other people explaining this topic. You've had the best, easiest to listen to explanation. Thanks
Finally someone explained DI in a very practical and simple way. Thankss!
Best video in yt on Dependency Injection & Inversion of Control.
This is gold. Thank you for showing your teaching skills and makings a concise no nonsense video. This is the way to learn a concept.
Excellent. In 10 minutes I went from being almost clueless about dependency injection to having a basic understanding.
Finally I am able to feel the real benifit of doing this after hearing these terms repeatedly for over a decade
I have spent literally years trying to find a decent video or article to understand DI. This is it right here, the explanation just makes sense
The best tutorial on Dependency injection yet! Seems to tackle every "why" regarding the topic. A suggestion: You could have had a class that creates the object(initializes database) and return the object before going into the framework section. The most perfect explanation on the internet.
I don't know Java much, I just wanted to understand the principles of DI. And you nailed it. Crisp, fast, to the point. Kudos
Thank you for this explanation. I did not understand this concept until you talked about the usage of unit testing and then the quarter fell. Thank you.
Still after 3 years its most relevant video on this topic. Kudos from India.
Dude. You blew my mind with how simple you made this.
Watching this 5 years later, still a fantastic video
This was amazing. It just explained everything I had my doubts about.
Im learning C# and Dependency Injection but was confused by some of the video on youtube specifically targeting c#. I stumbled on to your video and you made the concept so Clear! Thank you!
Finally, today i have understood IoC explicitly!!! yes you are a gooood lecturer!
This really is the best explanation of DI and IOC I have seen yet! Your explanation was very easy to understand!
I watched quite a few videos before I found this gem. Thanks for keeping it simple
I'm no Java developer, but I found that most of the OO-related terminology used turn out to be things I'm already familiar and accustomed to but simply didn't know the official descriptions for. This is also by far the best description of either concept I've come across thus far. Wikipedia tends to be way too bloated for me to chew through.
this explanation couldn't be better!! thank you
This is the best video on IOC I've seen on RUclips.
This is the best video explanation for IoC, dependency Inversion principle and dependency injection. 👏👏👏✌️
Perfect explanation for DI!
Love from South Korea
This is the best and greatest explanation on all over the internet!! After spending hours trying to learn this s*it I've finally found you. Thanks a lot!!
Good explanation, I did not understand IoC and DI before watching your video!
Best lecture I seen about this topic.
This is a great DI explanation with Realtime example !
Thanks Ryan for sharing a great content.
🤟❤
Automatic dependency part is really helpful since it reduces manual dependency injection
The BEST explanation of DI on RUclips
this is so good very clear explanation for IOC and DI, the example is pretty straight forward and simple to understand for beginners with no knowledge of spring, thank you!!
Thanks! Glad you enjoyed it
By far the best explanation for IOC and Dependency Injection. All other channels complicate that stuff. Much appreciated. Subbed your channel as well.
Good illustration. I liked how the debases are initialized in some global space outside the hand coded application.
This was fantastic, the easiest explanation for DI ever!
perfectly explained, even for non-english speakers.
thanks a lot
Yes. I still don't understand how inversion of control makes it easy to unit test the code?
Think about mocks. You can instantiate objects or call methods by passing in mocks. Without DI, the real implementation would exist within the function (which you may not have in a testing environment!)
Thank you! I’m a complete beginner and I was having really hard time understanding what ioc is about. Your explained it so clearly.
I still don't understand i think i am dumb
AMAZING! You just turn my brain to another level. Thanks! and keep doing your videos
Awesome! Great explanation in a super short video !!
After spending 1.5 hours on the web, this is by far the most useful explanation of DI and IOC. Thanks a lot! Can you also cover the Java EE vs Spring vs Springboot?
short ,fast and useful . thanks
Thanks to you and your simplest examples to understand this concept.
Thank you for this! I had to look into these for a job interview and this video is way more comprehensible than my college notes! haha
Okay the last part is what clicked for me. I didn't really understand what the advantage was of using a dependency injector library until that example. I've always just been doing it the manual (hard) way and then going through painful refactors.
Second time I search for something that leads me to this Channel. Subscribed
Nothing can be better than this. As a crash course I used to see this video :D
The best explanation of these two very important concepts. Thank you Ryan
By far the best explanation. which I was struggling to understand.b Thank you.
You did very well in this explanation. Tks! I was reading lots of docs here and you could explain in 10 minuts. (btw, sry about my english, it's not my default language)
Bro thanks, been jumping from explanation to explanation but just cannot fricken comprehend what di or ioc is, I now have an idea thanks to this!
ive been looking everywhere to understand this concept. this was so well explained.
Sweet
Short and to the point. 😎 Thanks !
Thank you very much! you made it extremely easy to understand.
great video even for 2023 thanks
Straight to the point and very well done. You could also post the first 7 minutes (7:05) as a separate video and that will make an excellent introduction to the concepts of IoC and dependency injection, regardless of one's technology of choice. I'm definitely subscribing :)
Straight to the point and no nonsense :P
Awesomely Explained, Thank you!
I'm currently learning Spring without much direction into why things are done the way they are in the framework, but your 10min video managed to explain a lot of that for me, Thanks !
Hows it going? I'm trying to learn too but havin issues 😭
@@TitaniumTronic At the time I commented I was just starting my new job, safe to say the best way to learn is by building projects, my learning capacity expanded drastically once I was thrown into building things with deadlines. What are you having issues with ?
Awesome, thanks! Something went click, finally!!! Been struggling to understand dependency injection and IoC up until now
best example and explanation I've heard so far. a great vid or series would be to set up a basic program using IoC and Java Spring
Wow what a wrap-up! Explaining beautifully from the beginning and connecting it to Spring seamlessly! Amazing Stuff:D
By far the best use of code to explain this concept! Thank you !
Mind blowing explanation! Thank you so much :)
Discovered you on 15th Jan 2021. this year will be good, unlike 2020. thanks for the best explanation of DI and IOC
Great content. Definitely subscribing. As a experienced dev I just need a quick example to follow to get the idea. A lot easier than trying to read the docs and get the point.
Awesome video. Finally, it makes sense
Great video, just what I needed in the state i'm in. But I think, watching this video only really helps when you already have an idea of the concepts. That's how it was to me. Before I watched the SOLID principle of Uncle Bob (a really good and entertaining video) but he has a very much more high level approach on it, looking at it from the business side (which we devs like to black out as often as possible :-))))) ), and your video directly afterwards , with this straight to the point and practical approach, was a perfect combination
nice and clean explanation! Thank you so much!
Excellent information!
Thank you so much!
Thank you for this, I finally got it.
nice, glad you enjoyed
Thank you so much, although I am working on a nest.js based application, this explanation was generic and I understood it very well.
Lucid explanation . thank you very much.
Outstanding explanation!
Very well explained. Thank you.
Beautiful explanation and comfortable demonstration! Thanks!
very nice clean and simple. good job
Perfect explanation! Thank you very much for this!
Awesome. Finally a tutorial that makes sense. Thank you!
I have to agree with most up top, really well explained, thanks and well done!
really informative video ryan, but i didnt understood after 8:40 if someone can explain it would be a blessing thank you.
Fantastic explanation, thank you so much.
You are a fantastic teacher! Hope you return to making videos...wish you all the best!
Thanks.Very clear explanations👍
Awesome video, very well explained. Its always been tricky to understand it but now I do. Thank you!