Dependency Injection with Koin and Kotlin in Android

There are a lot of reasons to use Dependency Injection, or even a Framework for it.

In this Article you’ll learn what Dependency Injection is, what benefits and downsides it has and how to use it with the usage of the Koin Framework.

Let’s look at a example of a House with a Doorbell to better understand what dependency injection is. Continue reading “Dependency Injection with Koin and Kotlin in Android”

How to create a mutable list in Kotlin?

Kotlin has its own keyword to create list which are mutable
As a child I learned that our solar system has nine planets

val planets = mutableListOf("Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus", "Neptune", "Pluto")
println(planets)

In 2006 Pluto was reclassified as a dwarf planet. So let’s remove Pluto

planets.remove("Pluto")
println(planets)