Man, first of all, you are THE BEST Android KZbin channel in the whole website. Second, you are just awesome!! You are a great teacher and a very charismatic human being. Last, but not least, I don't know how you don't get tired of making so many great videos. You ARE the best!! Thanks for teaching me so much. It's being a pleasure to have your videos as part of my life.
@PhilippLackner2 жыл бұрын
Thank you 🥺🙏
@John-qt6qk2 жыл бұрын
This coment is so sentimental
@emremuhammetengin20852 жыл бұрын
The best teacher i have ever seen
@alexeysimchenko74942 жыл бұрын
I use dagger/hilt every day but usually as copy/paste so today I decided to finally get known how it works. Your explanation is the best of several that I saw today!
@shashanknanda729910 ай бұрын
This is the most easy to understand explaination that I've ever found on dagger-hilt till now, you explained each topic very consicely yet clearly
@manuelsilveriof Жыл бұрын
This is by far the best explanation of Dagger Hilt I have found online. Not even the official Android Developers' KZbin channels explain it like you do. Thank you so much!!
@priyanshugupta79042 жыл бұрын
I am a student I can't buy u a coffee but I can like and share your video with my friends. Amazing Teaching :)
@henrygalvan93332 жыл бұрын
broo thank you, "you never actually call these functions, dagger hilt does", cleared up so much for me!
@nrg42859 ай бұрын
I normally blast through these tutorials but this one took a solid 1-2 hours because of coding and note-taking at the same time and there was so much good content. For example it takes 7 individual scrolls to get through the notes top to bottom, that's a lot more than usual
@mithunlzmv8064 ай бұрын
This is the recommended video for learning Dagger Hilt for Android. You don't need to watch anything else. Thanks, Lackner.
@khalidrinaldy3671 Жыл бұрын
you are the best Kotlin Android Developer's teacher, or maybe the best programming teacher i've ever watched
@VinothKumar-oo8ye Жыл бұрын
philip lackner, i studied your and workout your Weather app (clean code architecture) course, and i don't understand most of things, then after watching this dependency injection i understand all the doubts i have on the weather app course. super tutorial ;)
@osisuper982 жыл бұрын
I am lost for words already. Man is always hitting the nail on the end. Much love ❤️.
@daniellubenov8272 жыл бұрын
Those videos are with the latest and the best practices. Really the best android tutorials out there.
@PhilippLackner2 жыл бұрын
🙏🙏🙏
@LinaSarkar73072 жыл бұрын
its priceless. the slickness and the passion of the devs. priceless. what is cheaper and better than soft? Piracy is NOT the answer if you
@gugan99772 ай бұрын
This is seriously the best ever video that I watched for learning this concept..I am newbie and learned with comparing the code developed by my company and seriously you are the best🤩
@parulsinghal2k59 ай бұрын
you slayyyed it!!! 30 minutes video covered almost everything for a person who knew only how to use dagger2 👏
@Shots_by_ranjith Жыл бұрын
My man teaches me more than what I learnt from a 4 yearbachelor's degree.
@technics6215 Жыл бұрын
This is about a tool / library. Tools and libraries will change over time. Most of the things you learn in school won't change. If you are in engineering school you are not there to learn how to make a hole in metal with one particular kind of machine. You don't need a professor fot that. You are there to know why, when and where you have to make that hole.
@SumriseHD Жыл бұрын
@@technics6215but that opinion is way too nuanced!
@muyassarabdullah150411 ай бұрын
I always go back to your tutorial because it is very simple and easy to understands from fundamentals point of view
@gastonsaillen Жыл бұрын
I think we should use @InstallIn(ViewModelComponent::class.java) since the repository lives inside a ViewModel, in the meantime that we inject the repository inside the ViewModel, hilt will then delete this repository instance when the ViewModel is cleared (onCleared is called, ViewModel is destroyed because its activity/fragment does not need it anymore). If we do it with the SingletonComponent it will be tied up with the Application class you created, and hence, the repository instance will outlive the ViewModel. Another way of not using @Named could be to use @Qualifiers which can be more verbose on for example creating two different okHttp clients Great video Philipp, it contains a lot of excellent suggestions !
@tonyalbanese64462 жыл бұрын
I still can't believe how terrific these videos are. You explanations are superb. Thank you so much for taking the time to make this content.
@PhilippLackner2 жыл бұрын
Thank you, happy to help!
@mithilmehta15012 жыл бұрын
Hey Philipp, I am from India and I really love your videos and it helps a lot. Thanks! God bless you and keep up the good work. Your explanation are so simple that even a fresher can understand. 😊
@RaajKanchan2 жыл бұрын
Hey Mithil, I am new to Dagger Hilt. Can you help me, I want to pass String value from Activity to an AppModule. How can I do that?
@mithilmehta15012 жыл бұрын
@@RaajKanchan why do you want to pass string to app module from activity? Do you want to pass it to next activity?
@RaajKanchan2 жыл бұрын
@@mithilmehta1501 No, no its just an example. Let me give you the example. ----------------------------------------------------- class Customer @Inject constructor(@CName val customerName: String, private val age: Int) { fun printCustomerDetails() { println("$TAG :: $customerName is $age old") } } @Module @InstallIn(SingletonComponent::class) object AppModule { @Provides @Singleton @CName fun provideCustomerName() = "Mithil Mehta" @Provides @Singleton fun provideCustomerAge() = 24 } @Qualifier @Retention(AnnotationRetention.BINARY) annotation class CName @Inject lateinit var customer: Customer customer.printCustomerDetails() ----------------------------------------- Here in the module I am providing CustomerName and CustomerAge statically. Not dynamically. I just want to learn how can I do that.
@mithilmehta15012 жыл бұрын
@@RaajKanchan bro, you are getting it wrong. This is not something to be passed usong dagger. This data which should be passed either from activity to another Activity or else load from network for that particular screen. Dagger should be used to inject those dependencies which screen requires but doesn't care how it is created. So, as per my understanding your usecase is incorrect.
@mohinithakkar21722 жыл бұрын
Thank you so much for this! It has covered almost all the features of Dagger Hilt.
@mandarpawar14232 жыл бұрын
Man, you don't know how grateful I am right now! THANK YOU SO MUCH!!!
@sorousheskandary-l7qАй бұрын
Your videos are amazing especially for some like me that live in country with short resources.
@harishodzic3274 Жыл бұрын
I always try to give credit where credit is deserved. And you my man are pure gold. I just stumbled on your content and I'm happy for that. Fast, to the point, full of valuable information. Keep on going this is great. I will subscribe, upvote, like. Wish you a good luck in the upcoming days!
@arma6363 Жыл бұрын
Hilt would be super easy by your teaching, Thanks alot dear philip
@attilabacsa28082 жыл бұрын
Thank you, excellent content as always. When I decided to switch carrier and become an Android dev, your channel was one of the main sources to learn the basics. Keep up the good work! 💯
@PhilippLackner2 жыл бұрын
Awesome, thank you and keep it up! 🙏
@rajm2671 Жыл бұрын
Finallyyy, I learned Dagger-Hilt. Good explanation. Thanks, Philipp
@sumonchatterjee53374 ай бұрын
Hey, I have recently started watching your channel and I am really impressed by the way of teaching. The explanations are the best. Thankyou for making this videos.
@kamertonaudiophileplayer8472 жыл бұрын
A very frequently my class functionality requires the context. But it is available only in an activity. So I was really frustrated until watched you video. Now, I just tell - inject! That's it, simple and elegant.
@samasama348211 ай бұрын
The perfect explanation of Dagger Hilt I have ever seen! thank you
@bashi803142 ай бұрын
Thanks a lot for clearing out lot of questions I had on dagger hilt. Cheers...
@GoceAnastasovski2 жыл бұрын
Great video! I finally understood Hilt! I would create a sequel to this video where you focus on unit tests, you write the tests without hilt first and then with Hilt
@PhilippLackner2 жыл бұрын
I do have a hilt testing video on my channel :)
@fsfaysalcse2 жыл бұрын
Sometimes I thought you might be a superhero 😜 And you Come from a different universe. Best of luck, brother. I am your biggest fan from Coroutines video playlist ❤
@PhilippLackner2 жыл бұрын
Thanks man🙏😅❤️
@mymobile5502 жыл бұрын
Became so curious after watching this tutorial . Just after I implemented this in one of my project including database module.
@moforemmanuel1582 жыл бұрын
your tutorials are the best because you take time to explain the subtle concepts behind the code which is rare from other tutorials i just had to watch this once the get the whole scope of what DI with Hilt is and it implementations
@7xFuryPlayz Жыл бұрын
now i understand how to use Hilt properly , within my project but i have still some doubts within my mind about clean architecture implementation, hope so i will figure them too . but thanks for this complete video . 🤩☺
@fredericoamigo8 ай бұрын
I’m so grateful for all of your brilliant videos on Android development in kotlin and jetpack compose. Thank you so much for this! If I might suggest a future video: how to use foreground location for in a MVVP app using datasource-repository-viewmodel architecture.
@pablocruz13022 жыл бұрын
You are the Best Android development content out there. Thanks for your great content
@PhilippLackner2 жыл бұрын
🙏❤️
@jagat.jeeban2 жыл бұрын
You're a great teacher. Hats off to you man!! 🙌 Keep making such types of tutorials on android topics.
@codingwithtd5196 Жыл бұрын
Thanks man. This is one of the best Dagger Hilt tutorials I found.
@maryfrancegonzales95702 жыл бұрын
The KING is BACK! Thanks bro!
@tasmanlg Жыл бұрын
I have such praise for your content. Thank you so much, truly.
@azamovdev Жыл бұрын
this cool . I had the same problem and solved it with your content. good luck with your work.
@nantiyachomtee29982 жыл бұрын
The quality of your content is incredibly high, awesome stuff!! Thanks a lot!!
@AliAhmad-dev7 ай бұрын
Thanks a lot, I now can understand DI really well.
@winsonmac2 жыл бұрын
Great sharing! I learned new things from you like @Binds and Lazy Injection
@ashishgautam28422 жыл бұрын
bro as i'm seeing my growth, i have seen growth in you too..actually / definitely your ahead me but somewhere i feelled sync between us.
@musfickjamil28312 жыл бұрын
Philipp you look so fresh in new setup..setup looks awesome. we want setup tour
@guitarcat012 жыл бұрын
You always teach in a very patient and simple way and all i can do i really thank you SO MUCH for what you're doing! I'd say more than 60% of what i know about android comes from you. This is by far the greatest android development channel on KZbin =) PS: After this video i already implemented Dagger in two of my projects
@PhilippLackner2 жыл бұрын
Thanks a lot mate!
@Sarthakz992 жыл бұрын
I was looking for the same Auth token use case!! Thanks a lot!!
@senk0n2 жыл бұрын
Oh my, thanks to YOU, it's such an easy to understand and implement simple clean arch project for my CV now
@TerminalKid Жыл бұрын
dude you're Epic, learning a 'lot of good practices from you which saves me time. 👍👍
@manishpingale65582 жыл бұрын
I understood hilt like never before 🤯
@masmmaw2 жыл бұрын
love it 💖 still provide complete information and of course free. Thank you.
@PhilippLackner2 жыл бұрын
You're so welcome!
@Chekist200819 күн бұрын
Simply the best! Thank u and please keep it up
@pqsk2 жыл бұрын
Great video! Thanks so much for the explanation of this library.
@avinashreddy9565 Жыл бұрын
Great Explanation!!! Very Easy to understand...
@luckydevil1601 Жыл бұрын
thank you so much! finally I understood the magic behind this!
@realurah Жыл бұрын
damn... you are such a good teacher man
@PhilippLackner Жыл бұрын
Thank you!🙏🙏
@AnjuMohanan-t9y Жыл бұрын
Best Video in short time. Good content.
@PamontBahktar Жыл бұрын
You're awesome Philipp, thanks so much for this it's really helpful.
@abacaabaca81317 ай бұрын
The purpose of Dependency Injection is that you can share the same reference to an object even when the objects that wants to share it have different lifetime. For example, if I have 3 classes namely `Time`, `A`, and `B`. let say Time class is used for benchmarking or profiling your program. It can be used to detect how much time each functions/methods are executed at runtime. This means you need to create one single instance of Time class so that A and B can refer to this object. Because, if you create two different objects for A and B , maybe the timing is not continuous and so give wrong result. When you have dependency Injection, you have other class that kind of manage the creation of object and it's lifetime. Meaning, if A and B lives in different lifetime, they still be able to share the same reference to Time instance object. For example, if A is created first, then the dependency Injection will also create Time object. After A is deallocated, the dependency Injection will save the state of this Time object that have some state profiling instance of A. Then Time will get deallocated. Then when B is created, the dependency Injection will create the same object of Time with the same last state for A. Meaning as if Time object is reborn again but with the same state when it was when A is about to die.
@omkarkshirsagar88127 ай бұрын
first time i saw video i dont get it , after seeing video second time now its crystal clear
@leonkennedy12678 ай бұрын
Thanks for your videos! It's very helpful! More power to you!
@rahulrvp11 ай бұрын
Thanks a lot for making this video. Super helpful!
@Alchemist102412 жыл бұрын
This video was the exact info that i have needed.
@lioliknumberone1428 Жыл бұрын
very interesting and clear tutorial! Thank you very much!
@Langi667 Жыл бұрын
Your tutorials are extremely helpful, thank you so much!
@RockRider2k2 жыл бұрын
Imho the overhead of marking every here and there with annotations worth it only in huge projects. So the benefits of using dagger are very subjective
@kvasir25 Жыл бұрын
Also this makes all the configuration being spread across multiple files which imho makes it more complex than it's needs to be
@toniwincent66532 жыл бұрын
You are the best at explaining this so that I understand! Thank you so much! When I get my first job as a developer I will buy you coffey! 🙂
@PhilippLackner2 жыл бұрын
Thank you, happy to help!!
@behnawm2 жыл бұрын
Thanks for the great video! Please consider explaining different scopes and lifecycles for the dependencies too.
@punyan7755 ай бұрын
Good video, some concepts were easy to grasp but others relied on pre-requisite knowledge of the android architecture. You should've skimmed over some of the core concepts
@shootsir Жыл бұрын
29:56 what does it mean "you should always use interface abstraction" ?
@genctasbasi Жыл бұрын
This guy is a gem.
@Dineshkumar-f1f6o10 ай бұрын
Thank you so much for your excellent explanation dude 😀😃😄😁
@MrVipulLal Жыл бұрын
Your videos are all amazing 🙏👍👍👌💯
@giaahayes3 ай бұрын
Great content! Very helpful!
@BilalBerek-tl3tq10 ай бұрын
perfectly explained dude.
@7xFuryPlayz Жыл бұрын
but for those who are reaching this video late . the latest version of hilt is 2.46.1 and you donot need below dependency any more with the latest hilt implementation ... implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03" and everything else is working fine with hilt
@dawidtyburek2 жыл бұрын
Love it! Great that you are using Binds for interfaces/abstracts, most guides I have seen is just showing Provides but imho Binds is as much important😊
@PhilippLackner2 жыл бұрын
💪💪
@remmievail20032 жыл бұрын
Philipp makes the comment that Bind generates less code, is that the only difference? @Binds and @Provides seem to be basically the same thing, just slightly different.
@ChrisAthanas2 жыл бұрын
@@remmievail2003 one is concrete implementation of a particular type, one is for a mapping an interface to a particular implementation of a type
@SapphireStudioart Жыл бұрын
Great video! Well explained, thank you
@andinaevitha69502 жыл бұрын
ITS REALLY WORKED LOL THANK YOU DUDE
@Hoseinsadonasl-jo4dm7 ай бұрын
Really awsome Philipp
@rizfirsy Жыл бұрын
Can we use ksp instead of kapt when using dagger-hilt? 8:43
@ultron10608 ай бұрын
hi,I was wondering which shortcut he is using to create bring create new file Gui at 9:15
@ubersticks2 жыл бұрын
Great job Phillip! When should we use "vm = hiltViewModel()" vs "vm:MyViewModel" by viewModels()" ??
@ibrahimkhalilshakir24142 жыл бұрын
Tnx Again for nice video. If possible make a video about builder pattern/ factory pattern. And why we need to use them.
@abhishekpathak7698 Жыл бұрын
Indeed it was helpful. But i got confused in appcontainer and module of the app components that are created within the appcontainer
@chitye-aung2 жыл бұрын
Awesome! Thank You Philip
@PhilippLackner2 жыл бұрын
Welcome!
@atelier_mongame41192 жыл бұрын
This was so helpful!! Thank you
@bdjobstv85752 жыл бұрын
thanks a lot!!! so nice reverb
@whogashaga6662 жыл бұрын
Thanks for sharing this video.
@coldwolf50502 жыл бұрын
Great video, very helpful 👍
@MohsenMashkour Жыл бұрын
what we should learn first? MVVM or dependency injection?
@MohsenMashkour6 ай бұрын
MVVM
@ankitverma39322 жыл бұрын
Please also include the use of entry point. How to use injected classes in attachBaseContext of application or activity ?
@lukapolic94462 жыл бұрын
Thank you for this video. Very clear, informative, and organized. How much time have you put in to make something like this ?
@PhilippLackner2 жыл бұрын
Thanks! If the topic is already clear to me and doesn't require research like here, a video like this one takes 4-5h
@burakkarabekir28632 жыл бұрын
Nice recap, thx man!
@PhilippLackner2 жыл бұрын
Welcome!
@theevan38672 жыл бұрын
Thanks Phillip! if you can, can you make a youtube short of app examples that would be considered impressive to get an entry level position? Please. Thanks!!!