Dependency Injection in a Nutshell
Vložit
- čas přidán 31. 05. 2024
- What actually is dependency injection? After this short video you will know.
⭐ Get certificates for your future job
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses/
💻 Let me personally review your code and provide individual feedback, so it won't backfire and cost you a fortune in future:
elopage.com/s/philipplackner/...
Regular Android tutorials on my Instagram: / _philipplackner_
Checkout my GitHub: github.com/philipplackner
So anytime I've made a class with a constructor that takes arguments I've just done dependency injection? That's essentially what I got from this.
People make playlists with 20+ vids and still can't explain why we use it in the 1st place. And you explained it so precisely in just 2 min. Fuckin legend.
Thanks a lot!
I feel attacked :'(
Thank you sir finally I can understand the dependency injection
Coding in flow, glad to see you are learning something new too!:)
ha ha ha 🤣🤣🤣
Oh geeez
Can’t stop laughing on this comment here! 🤣🤣
Lmaooo🤣
Those videos are so good, people underappreciate how good for problem solving a solution is when hard problems get a simple high level insight, especially if you also give them illustrations. Well done!
This boy has the gift of explaining, I had already understood what dependency injection is, but with just 2 minutes, everyone can understand this concept. THANKS👍
That's a such a good video to start understanding the concept. Congrats!
Hi Phillip. Thanks alot for this short and very explanatory video. I found dependency injection quite confusing but after watching this I have a good idea what it means and why it is useful. Thanks again Sensei 😊
Philipp I have been following on Instagram and I must say I admire the fact that you keep the android community updated! I would love to see you present a sample project containing the latest architecture of android in 2021
Thanks! The latest architecture is still MVVM and I have a lot about that :D
You're awesome man, great content!
Just the reminder i needed. Thank you
Hi Phillip, I'm becoming your fan - love the way u explain things. Thanks!!
Thanks!
Wow. This is a great video with the simplest explanation. Thank you so much for this.
Dear lord! Just perfect work with this video!
"Giving an object its instance variables", I wish I had seen this nice and simple explanation earlier, before I had to go through all the overworded definitions online that confused the sh*t out of me
Very neatly explained, Thanks Philip
Thank You ! You just earned a new subscriber 😇
Please make tutorial for hit multiple api with different model using retrofit and coroutine 🙏🏻
The Best! As usual!
Simply the best. Keep up the great tutorials 👍
Thanks! 🙏
Philipp, where can I get the outro music that you used in this video?
It is so good!
very good quality, thanks!
This was easy peasy here. Thanks
Thanks! I finally understand what is dependency injection!
Thank you sir finally I can understand the dependency injection.
You really help beginners like me♥️
thaaankkss man, what a great explanation
Awsome explanation
Thank you sir...Today after 1.5 years in Android I was able to understand dependency injection. I feared from this word.
you're welcome
So is it similar to using an abstract class?
nice explained!
Yes well 2 minutes explaining what it is, and a couple 30 min videos describing a couple of premade solutions but what about a full course on it?
Dependency management is one of the most difficult aspects of large scale enterprise level application development and doing DI correctly is far from easy...the concept of how is simple at the core but understanding when and what, then keeping it manageable and teatable across dozens of modules can be a huge undertaking.
I would love to see a video about dependency injection the conceptual and theoretical rather than a specific tool
Can you tell how to reset android stuido basic but i cant a good video on youtube
Brilliant
i recommend applying this to one of your projects, to witness the hellscape you've become immersed in
Always Super😀
nailed it.
Hey man can you make a video on how to properly read the android documentation? There are very few videos on youtube and how to do so and most of the aren't really helpful at all! Here is an idea: Just show how YOU read the documentation and what you do if you dont understand any topics.
have you found any good one?
great bruh
Thanks! :)
dont understand who will do that @0:58 ?
I have watched alot of videos, definitely longer than this, but I failed to get them, until I came here
background music is a bit loud
Fantastic video, Pity this video was not around in 2014 when dagger thing came out
Great video! Simple and easy to understand. I have a video suggestion: Could you show us how to prepopulate a room database with the .createFromAsset or .createFromFile methods? It would be greatly appreciated! Grüße aus Deutschland!
song name ??
Please make tutorial on jetpack compose
very nice
Epic!
Mission Passed
Respect++
For the next video please put a lofi song on the background :)
Hi Phillip, from where you are learning this topics in details?
From your mama
Super
why don't you use dagger 2
Bro you talk about
Managing memory in Dependency Injection..
Do we need to manage the memory (lifetime of that dependency objects we are using)?
Because if we use java or kotlin do we need to still explicitly deallocate memory for unused object?
if so how can we do that?
Java has a garbage collector so it is not needed
This is like having a pointer to another class..
in the Computer class..
first we initialize the pointer with null values in the private field section
And then in our public constructor we assign what ever value for that object the computer gets from outside computer class
Honestly I’m more confused now, how is providing arguments to a class constructor function all there is to DI? If it’s as simple as function parameters, why on Earth is DI even needed as a concept, when it’s so basic to programming? By that definition, a function f(x) has DI when you provide x, since you can think of f as a class with one method and one class property
Yep it's all about managing your dependencies and not initializing them all over the place
best example I ever see
you'r going to change the boring teaching method into fully dopamine release content like watching a movie
Thank you❤️
that's gold
Awesome
Please create an android app using dagger.
Java programmers discover function arguments
music is too loud
request tutorial content provider sir. Thanks you
500th Like ❤️👋🏼
Never seen beautiful explanation like this
You are truly awesome tutor
Thank you🙏🙏
So "constructor injection" is just using a constructor... the way you normally do?
Yes
Bro this was the best explanation ever. How in the world did you think of this example?!
❤❤
Nice! Could you make video about custom view and compound view. There's not much video about that on youtube. Thanks 😊
not yet. I plan on doing that when jetpack compose is out
what a weird choice of music :)
This is a perfect explanation of a complex subject that *SOME FAMOUS* engineers seem to relish in overcomplicating.... *cough*thermosiphon*cough*
Thank you!
while(true) { println("You're my hero") }
This video made it worse for me, your definition is like "if you need something to be specific for each object that consumes it, then go ahead and make instance for each object".
Which is the equivalent of "if you feel hungry, then go eat", or "just don't be stupid".
The fact that this....."Strategy" even has a name, is very confusing to me.