Hilt Dependency Injection (Kotlin Beginner Example)

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

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

  • @NMNaufaldo
    @NMNaufaldo 3 года назад +72

    12:02 In the new version of Hilt, `ApplicationComponent` just change to `SingletonComponent`

  • @codinginflow
    @codinginflow 3 года назад +20

    Here is your engagement

    • @codingwithmitch
      @codingwithmitch  3 года назад +2

      nice 1

    • @codinginflow
      @codinginflow 3 года назад +10

      @@codingwithmitch What I don't even get a heart?

    • @felipefranco7444
      @felipefranco7444 3 года назад +2

      @@codinginflow lol coding in flow you are also an awesome mentor!

    • @codinginflow
      @codinginflow 3 года назад +2

      @@felipefranco7444 What do you mean "also"?

    • @felipefranco7444
      @felipefranco7444 3 года назад +2

      @@codinginflow Mitch is a mentor so are you . Both teach developers in a great way!

  • @samyups1111
    @samyups1111 3 года назад +3

    I started learning Kotlin/Android in December and you are one of my constant go-to person! Also, THANK YOU for switching to Kotlin!!!

  • @lirjarmuhametova8516
    @lirjarmuhametova8516 Год назад

    Я плохо знаю английский язык, но вы так хорошо объясняете, что даже я всё поняла. Спасибо большое за урок. Пожалуйста, продолжайте снимать видео

  • @kostyabakay
    @kostyabakay 3 года назад +2

    Best DI tutorial! I have tried to learn Dagger several times but always I was giving up because of the complexity of the library...

  • @inmikeshands1722
    @inmikeshands1722 3 года назад +2

    I am a codingWithMitch founding member subscriber and honestly its one of the best if not the best subscription I ever made in my life highly recommend,
    this is my first time seeing hilt at work and yes it is much easier and more straightforward to understand and to use then dagger2 so thank you Mitch for everything you are doing for us please keep it up

  • @richardgarcia6677
    @richardgarcia6677 3 года назад

    Holy mother, i just ended up learning dagger and started with hilt so hilt make things a lot easier an much more clean. the negative point is tha it is in alpha release and a lot of deprecations happens making the maintenance a little much effort in this beggining but it definitely will be a strong requisite in the near future i will definitely use it... Thanks for the course you definitely nail it

  • @Hacker-x
    @Hacker-x 3 года назад +2

    This time.. I am watching the video in the car and waiting the order from restaurant.. Thanks😎

    • @codingwithmitch
      @codingwithmitch  3 года назад +1

      Way to be efficient

    • @Hacker-x
      @Hacker-x 3 года назад +1

      Thank you Mitch. I like your channel.. I am following you from Oman

  • @jonathanaustin4328
    @jonathanaustin4328 Год назад

    Thanks for the vid, already easier to understand. Looking for the next one already.

  • @genshinassassin1139
    @genshinassassin1139 3 года назад +1

    Watching this video 69th time
    Still hilt is something to learn🧐
    And will learn it soon

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

    Nicely Explained in short..Sometimes few words can do magic ..this particular tutorial does the same

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

    First time on the channel and I already loved your content! Keep it up, brother!

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

    Hey Mitch I liked the video 😁😁
    I hope I will be able to understand why are we doing DI by next two videos.

  • @ivanbartolelli9361
    @ivanbartolelli9361 3 года назад

    Hey Mitch, if you someday come to Argentina I will be glad to buy you a good Fernet with Coca, you deserve it dude!

  • @tanjimahmed213
    @tanjimahmed213 3 года назад

    Thank you, Mitch! Here is your engagement and your like! Keep it up! 👍

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

    Best explanation 😊❤

  • @DS-bz4mz
    @DS-bz4mz Год назад

    Very concise and helpful explanation, thank you :)

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

    thanks, dear mitch

  • @taar1
    @taar1 3 года назад

    In Android Studio there's a presentation mode: View -> Appearance -> Enter Presentation Mode
    Could help for future videos :)

  • @JitubhaiyaPhysics
    @JitubhaiyaPhysics 3 года назад +2

    mitch

  • @shafaquesattar
    @shafaquesattar 3 года назад +1

    You are doing a great job..

  • @MedAmineSouaiaia88
    @MedAmineSouaiaia88 3 года назад +1

    Thank you; you made DI clear for me.

  • @hellespont5072
    @hellespont5072 3 года назад

    The gift that keeps on giving! 😁

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

    nice one mitch

  • @muzammalabdulghafoor6418
    @muzammalabdulghafoor6418 3 года назад +6

    Man! You look better with bear, MaShaAllah!

    • @abolfazlrezaei5397
      @abolfazlrezaei5397 3 года назад

      for who don't know about MaShaAllah, MashaAllah is a word that Muslims says to another guy :), so that means are you so good man 😂

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

      lol, no

  • @hanamanth_vlogs6565
    @hanamanth_vlogs6565 3 года назад +1

    Very good content sir

  • @MuhammadNaveed2016
    @MuhammadNaveed2016 3 года назад +2

    First Engagement

  • @ankurg_
    @ankurg_ 3 года назад +3

    What if I have two functions of return type String. How Hilt will figure out which dependency to provide?

    • @codingwithmitch
      @codingwithmitch  3 года назад

      Tomorrows video will show you that (part 15)

    • @ankurg_
      @ankurg_ 3 года назад +1

      @@codingwithmitch Thanks Mitch. Just saw that video and my doubt is clear :)

  • @muhammedshahin6299
    @muhammedshahin6299 Год назад

    Awesome one

  • @roshanfx369
    @roshanfx369 3 года назад +1

    Thanks

  • @SmemsMusic
    @SmemsMusic 3 года назад

    Really good explanation man, thank you.

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

    I can't get any of the dependency stuff to build. Not sure what I'm missing.

  • @MaisUmSomente
    @MaisUmSomente 3 года назад

    I will try that.

  • @ecemvarma4546
    @ecemvarma4546 3 года назад

    Thanks for the vid best explanation!

  • @staceyrichards8656
    @staceyrichards8656 3 года назад

    Thanks Mitch. Very clear and concise explanation. It helped me a lot.

  • @chaitanyagopinadh6000
    @chaitanyagopinadh6000 3 года назад

    Hi,
    Everything undterstood well but one doubt how the module methods will call in mainactivity without we call those,Example you showed one randomstring append in mainactivity and printed in log,
    Could you please clarify me...

  • @PhilandNevie
    @PhilandNevie 3 года назад

    Great summary.

  • @__Minecraft_Poseidon__
    @__Minecraft_Poseidon__ 3 года назад +1

    Thank you!

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

    Nice Video

  • @terencejumba1939
    @terencejumba1939 3 года назад

    if you are getting errors after adding hilt when you run build the app:KaptDebugKotlin error remove the @parcelize annotation in recipe model class

  • @judefrancis
    @judefrancis 3 года назад +1

    Awesome stuff

  • @abdelrhmantalat9813
    @abdelrhmantalat9813 3 года назад +1

    Greate Work!!

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

    perfect

  • @mal7othify
    @mal7othify 3 года назад

    Great engagement

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

    Wow I like

  • @alexiachimov9817
    @alexiachimov9817 3 года назад

    Awesome tutorials !

  • @abhimanyoosingh7027
    @abhimanyoosingh7027 3 года назад

    If possible please suggest how to work admob 💵💵💵 with hilt and viewmodel

  • @HelloBayzid
    @HelloBayzid 3 года назад +2

    First view

  • @mehdiparsaei1867
    @mehdiparsaei1867 3 года назад +2

    The second. Thanks a lot.

  • @faithphysicsphilosophy6721
    @faithphysicsphilosophy6721 3 года назад

    Thank you

  • @bboydarknesz
    @bboydarknesz 3 года назад +1

    ok, report
    now ApplicationConmponent is deprecated and replaced with SingletonComponent
    :'D

  • @erickramones2167
    @erickramones2167 3 года назад

    7:52 fontsize was ok, maybe 35.

  • @mytubekt
    @mytubekt 3 года назад +1

    Great explanation ! :)

  • @alaadeego5416
    @alaadeego5416 3 года назад

    hey mitch ur engagement

  • @tausifuddinahmed4868
    @tausifuddinahmed4868 3 года назад

    is DI only used for making testing easier? Code reusability is another vital reason according to the android official documentation.

    • @codingwithmitch
      @codingwithmitch  3 года назад +1

      Yes I said that. You use the same instance of an object

  • @juniorlapunete4660
    @juniorlapunete4660 3 года назад

    Hi Mitch, please can make more videos about CRUD MVI using kotlin?

    • @codingwithmitch
      @codingwithmitch  3 года назад

      I have tons. Look at any of my courses on my website

  • @ahmetbozkan4610
    @ahmetbozkan4610 3 года назад +1

    cool

  • @igorkluev5682
    @igorkluev5682 3 года назад

    comment for the algorithem gods

  • @РожковАндрей-х8ш
    @РожковАндрей-х8ш 3 года назад +1

    Mitch, you have site codingwithmitch.com. Did you create it by youself, with you own hands?

  • @johnybaby9574
    @johnybaby9574 3 года назад

    i am liking this video lol

  • @yuruar
    @yuruar 3 года назад

    Nothing is clear

  • @weirdyadav
    @weirdyadav 3 года назад

    Was your beard always that thick?

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

    Very shallow bullshit explanation. No one understood anything. Reminds me of Traversy type of explanation.

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

    hey Mitch hilt is not working for new gradle versions 7 and up. It's showing missing dependency but have applied all the dependencies needed

  • @tom-wz5le
    @tom-wz5le 3 года назад

    Thanks

  • @udayshah4525
    @udayshah4525 3 года назад +1

    Here is your engagement

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

    I did like your video

  • @anantawasthy4892
    @anantawasthy4892 3 года назад

    Here is your engagement

  • @samstoyroom
    @samstoyroom 3 года назад

    What about Koin?

  • @maXXik1337
    @maXXik1337 3 года назад +1

    Hello sir, great video as always.
    Right now, i feel exactly like you described at the end. Which is something i feel incredibly often as being complete programming (Kotlin) newbie.... why do we do this instead of just put val string: String into viewModel constructor, right? I often feel things are way more complicated then they should/could be :|
    But if you anticipate it, i feel just fine about that, looking forward to next videos.
    One suggestion: you say that we should use this mostly for testing purposes, so last video if this course (or maybe even whole new series?) should touch testing for beginners and especially how using Hilt simplifies doing so.

    • @codingwithmitch
      @codingwithmitch  3 года назад +1

      Next course with the cache will include some unit tests

  • @mohammadshahhoud5120
    @mohammadshahhoud5120 3 года назад

    Thanks

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

    🐐🐐🐐🐐

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

    Thanks!

  • @lifeOfCharlesMaina
    @lifeOfCharlesMaina 3 года назад

    My best teacher any time when it comes to Android things 💯

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

    Great Content and demonstration, easy to follow

  • @TanujSareenRockStarDeveloper
    @TanujSareenRockStarDeveloper 3 года назад +1

    👍

  • @AkshatKumawat
    @AkshatKumawat 3 года назад +1

    ✌️✌️

  • @muhammadrizwan7179
    @muhammadrizwan7179 3 года назад +1

    Nice, confusion is going away