Koin 3.2 - Improving the Kotlin Developer Experience by Arnaud Giuliani

Поделиться
HTML-код
  • Опубликовано: 3 май 2023
  • Recording brought to you by American Express. americanexpress.io/kotlin-jobs
    Koin is the Kotlin dependency injection framework well known for its ease of use and efficiency. It has been greatly appreciated by the Android community since 2017.
    In 2022, a new major version of the framework is released: Koin 3.2. Let’s explore the great new DSL that still continues to simplify our writings, also the new module hierarchy organization capacity, and much more.
    The Koin Annotations project is also getting to its first stable version: 1.0. It’s a great time to see all you can do with these annotations, powered by Google KSP under the hood.
    Talk by: Arnaud Giuliani
    #Koin #KotlinConf
  • НаукаНаука

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

  • @JillesvanGurp
    @JillesvanGurp Год назад +9

    Amazing. I was already a koin fan but this is leap frogging the capabilities of Spring. One concern I have with ksp is getting locked into specific versions of Kotlin and not being able to upgrade when there are new releases of Kotlin. I've experienced this with other ksp based plugins. Basically not a problem if koin updates frequently but as soon as there is any lag with that, you are basically blocked on updating. It's a big reason, I'm avoiding ksp dependencies in most of my projects right now because I don't like being locked into a specific version of kotlin just because of some library I need. Any insight on how this would work with koin? Or whether in general this is something that can be solved?

    • @jesprotech
      @jesprotech 7 месяцев назад

      I’ve had KSP issues in the past as well, but nothing that can’t be sorted out by simply opening a ticket. Luckily the community has always been very helpful to me.

  • @dmytrooleinichenko9865
    @dmytrooleinichenko9865 Год назад +2

    Looks awesome!

  • @jesprotech
    @jesprotech 7 месяцев назад

    I’m going to try Koin soon. This looks amazing. Very nice way of doing injection. I’ve made my own injections in the past and of course using Spring and Jakarta, so this should be very easy to learn. And it looks to be awesome when thinking of using it in android. On a side note, it looks like the link to the Ktor tutorial on your page isn’t working. I checked it this morning. Great talk any way. Very very informative! Loved it! 👍

  • @mohammedoucif217
    @mohammedoucif217 Год назад +2

    Just a question here : in the example where he used the repository and the presenter, he had to use annotations in both of them. So, in a big project where we have more layers, we will have to put the annotations in all of them. Don't we suppose to avoid that to not make the code tightly coupled with a specific DI library ?

    • @jesprotech
      @jesprotech 7 месяцев назад

      Maybe, but that is probably the same case with Spring. Yet no one questions that and the reason for that is that Spring is now so widely used that this risk doesn’t exist.

  • @dleonardo3238
    @dleonardo3238 3 месяца назад

    Why can't I use the inject function when using Koin for Desktop?

  • @seanknowles9985
    @seanknowles9985 Год назад +1

    Devex, hot reload would be super.