Idiomatic Kotlin and Best Practices

Posted: 01 Dec 2017. Last modified on 08-Feb-25.

This article will take about 1 minute to read.



Triangle:

Use field notation for getters, use invocation notation for actions

https://android.github.io/kotlin-guides/style.html https://kotlinlang.org/docs/reference/coding-conventions.html klint - Not customizable, styles and checks style kotlinter - based on klint, customizable IntelliJ IDEA code inspection Customizable Various severity levels Defaults to recommended best practices Good documentation https://www.jetbrains.com/help/idea/2016.1/code-inspection.html



Software Engineering Best Practice