Tag: Kotlin

Testing tools for Kotlin. Quick recap in 2020.

We can group testing tools into 3 main categories Frameworks Mocks Assertions 1) Frameworks JUnit4 Just good enough to work, without any cool features. Still default in the Android project because the next version (JUnit5) needs Java8, which still isn’t default for Android, because of compile time. JUnit5 This...

Early return in Kotlin

In programming, there is an open discussion as to whether you should only have one return statement.You can use these two options (or more with variations or more arguments): I prefer the second option, to have more than one return statement. I see it as more readable, but I...