Dependency Injection with Koin - Android Kotlin tutorial

แชร์
ฝัง

ความคิดเห็น • 54

  • @codinginflow
    @codinginflow 4 ปีที่แล้ว +64

    You definitely have the best introduction of all coding channels

    • @rahulattili3039
      @rahulattili3039 3 ปีที่แล้ว

      hahahaha.....

    • @mattgraves3709
      @mattgraves3709 3 ปีที่แล้ว

      I thought that was a mistake? ... :/ BTW Hello Florian

    • @aykxt
      @aykxt 3 ปีที่แล้ว

      and probably the best outro too

    • @Spham99
      @Spham99 2 ปีที่แล้ว

      LOL im deaddd xD

  • @harishv4806
    @harishv4806 3 ปีที่แล้ว +10

    Shit. I was reading docs and so many articles to get a grasp on Koin for hours. But here's a video which perfectly summarised everything with a simple example in 8 minutes. Thanks and PEASEEE!

  • @Kukupuffs
    @Kukupuffs 4 ปีที่แล้ว +5

    Thanks for simplifying this! I can’t tell u how many videos I’ve watched lol

  • @youssefkhaled1189
    @youssefkhaled1189 11 หลายเดือนก่อน

    OMG, Finally someone explains a simple real example. Thank you so much!

  • @mattgraves3709
    @mattgraves3709 3 ปีที่แล้ว +2

    Great job! Just outstanding. In 8 minutes, we got everything we need to get started

  • @kobowo
    @kobowo 4 ปีที่แล้ว +1

    That is a very pragmatic approach to understanding Koin. Thank you! Subscribed.

  • @bas133
    @bas133 4 ปีที่แล้ว +1

    Victor thank you so much! Such an excellent explanation with an approachable, but realistic example. I feel much more confident with koin than dagger.

  • @kieran1990able
    @kieran1990able 4 ปีที่แล้ว

    This was super quick teaching and I understood in one go. So I subscribed you. Well done!!!

  • @PrieyudhaAkaditaS
    @PrieyudhaAkaditaS 4 ปีที่แล้ว

    Probably the best explanation of DI so far

  • @felipesantiago3326
    @felipesantiago3326 3 ปีที่แล้ว +1

    simple and clear, congrats! 👏🏻

  • @mattgraves3709
    @mattgraves3709 3 ปีที่แล้ว

    I would add, man this just seems to make much more sense, now I hear people say Hilt is easier than Dagger2 etc, I never learned Dagger2 and Hilt was very unintuitive.
    I was about to build my own when I got a project that needs this library's skill so here I am and loving it!
    Very straightforward what you are doing.

  • @damianperon6165
    @damianperon6165 4 ปีที่แล้ว

    AWESOMEEEE... finally a concise explanation... I've followed many tutorials without success (even Koin website)

  • @deepakrattan2328
    @deepakrattan2328 4 ปีที่แล้ว +3

    Nicely explained.Thanks .Waiting for the next video.

    • @theobencode7234
      @theobencode7234  4 ปีที่แล้ว

      You're welcome, working on the new video. Will be out soon :)

  • @SankalpToons
    @SankalpToons 2 ปีที่แล้ว

    just 8 minutes to know koin , best video thank you

  • @suhaswagre3396
    @suhaswagre3396 3 ปีที่แล้ว

    Great beginning for a course, thanks 🙏

  • @andrii_gepbl4_from_deddom
    @andrii_gepbl4_from_deddom 3 ปีที่แล้ว

    Thank you))
    I've already used Dagger and Hilt and wanna try Koin. Nice lesson! Very easy to get in)

  • @victormultiverse5799
    @victormultiverse5799 2 ปีที่แล้ว

    Tutorials should be like this video: fast and direct. Thanks a lot!

  • @mehdit5783
    @mehdit5783 3 ปีที่แล้ว

    Explanations are insane ! Thanks !

  • @taslimoseni2231
    @taslimoseni2231 4 ปีที่แล้ว +7

    +1 for the "See ya, PEEAAACCCEEE".

  • @caranologi
    @caranologi 2 ปีที่แล้ว

    awesome, this example is easier to understand, thank you

  • @samstoyroom
    @samstoyroom 2 ปีที่แล้ว

    You saved my day. Thank you!!

  • @farkhodkh2760
    @farkhodkh2760 3 ปีที่แล้ว

    Cool exact demonstration of androud koin!

  • @miladvarvaei
    @miladvarvaei 4 ปีที่แล้ว +1

    thank you. it was very understandable for me. very clear

  • @iftak01
    @iftak01 3 ปีที่แล้ว +1

    This is a really good tutorial man! Thanks.
    Make a longer one with an sample app using koin mvvm retrofit etc. Thanks

  • @MegaBezalel
    @MegaBezalel 4 ปีที่แล้ว +3

    I recommend linking to part 2 in description

  • @safionweb
    @safionweb 2 ปีที่แล้ว

    Great tutorial, subscribed :)

  • @zachyang1041
    @zachyang1041 6 หลายเดือนก่อน

    Great video!

  • @arilson6024
    @arilson6024 3 ปีที่แล้ว

    Good example for beginners 👏

  • @AlphaZ96
    @AlphaZ96 4 ปีที่แล้ว

    thank u ! best introduction

  • @exXxkalibyR
    @exXxkalibyR 3 ปีที่แล้ว

    Very good explanation

  • @rebekahoj
    @rebekahoj 4 ปีที่แล้ว

    Thank you.

  • @mohamedebrahem1275
    @mohamedebrahem1275 ปีที่แล้ว

    Greate you amazing 👍

  • @kisan_thapa
    @kisan_thapa 3 ปีที่แล้ว

    Awesome!!!

  • @fromthekeyboard1466
    @fromthekeyboard1466 4 ปีที่แล้ว +1

    You need to make more videos my friend !!!

  • @jamesedwards9054
    @jamesedwards9054 4 ปีที่แล้ว

    What if you want to pass values into the student class that was called in MainActivity?

  • @bitwisedevs469
    @bitwisedevs469 2 ปีที่แล้ว

    Just learn Dagger2 and moving now to Koin, so far this tutorial is really good and straight forward. I would say Dagger makes a really bad impression when learning DI on Android. Anyway, what is the disadvantage of Koin compare to Dagger as of this moment?

  • @Spham99
    @Spham99 2 ปีที่แล้ว

    I aspire to be this good one day ...

  • @marfinfadilah1591
    @marfinfadilah1591 3 ปีที่แล้ว

    How do you restart the koin? is the koin does not work for dynamic function injection? such as this case,
    "A user want to tell their school anytime and retrieve the student data with that provided school information" is it possible using this koin?

  • @John-qt6qk
    @John-qt6qk 4 ปีที่แล้ว +1

    Awesome at least I could get the hang of it lol

  • @RaphaelCohen
    @RaphaelCohen 3 ปีที่แล้ว

    nice explanation. is there a reason you injected Student in your MainActivity in the onCreate? what if I want to inject them on init{} for example? can there be problems with that? Edit: never mind, I just saw your second video on lazy injection. really great examples, keep it simple.

  • @gilong1311
    @gilong1311 2 ปีที่แล้ว

    Hello, I have a question:
    If I wanted to inject a BestFriend() class instead of a Friend() into the Student() class then would I just add BestFriend() in the module and change the parameter of the Student class to:
    "class Student(course : SchoolCourse, bestFriend : BestFriend){...}"?

  • @shotx333
    @shotx333 3 ปีที่แล้ว

    Please make a playlist.

  • @JustLikeRAV
    @JustLikeRAV 2 ปีที่แล้ว

    🙌

  • @TheMikkelet
    @TheMikkelet 3 ปีที่แล้ว

    hey so if I have a class with like 10 parameters, I would need to write constructor(get(),get(),get(),etc...)?

    • @theobencode7234
      @theobencode7234  3 ปีที่แล้ว

      Yes you'd have to call get() so koin knows to retrieve your dependency. But realistically, how often do you have a class with 10 parameters?

    • @TheMikkelet
      @TheMikkelet 3 ปีที่แล้ว

      @@theobencode7234 well the problem I was thinking of was not so much how many, but rather that dependencies get added and removed from time to time! What I like about dagger is that I can just add a remove dependencies as I need them! I dont have to add/remove code in two places, if you get me?

    • @theobencode7234
      @theobencode7234  3 ปีที่แล้ว +1

      @@TheMikkelet Yeah I totally get that view point, and we could have a discussion about service locator vs DI or Koin vs Dagger, but I think its important to understand both, and use what suits your needs. I'm also a fan of dagger and I made some videos on it, granted they are about 2yrs old. But hope that helps.

    • @TheMikkelet
      @TheMikkelet 3 ปีที่แล้ว

      @@theobencode7234 fair enough, I'll check those out? What is that rationale for koin then? Simplicity in other aspects?

    • @theobencode7234
      @theobencode7234  3 ปีที่แล้ว +1

      @@TheMikkelet Yes, koin is simple to setup and easy to understand whereas Dagger has a very steep learning curve. If you've ever setup a dagger project you know the pain. I noticed this particularly when working on a team with junior devs and 80% of their questions were related to resolving Dagger issues. Hope that helps