5 Kotlin Tips for a Cleaner Codebase
Несколько советов для написания более понятного, поддерживаемого и читаемого Kotlin кода.
👉 Pay attention to the visibility of classes
👉 Keep the number of top-level declarations to a minimum
👉 Prefer readability over saving a few lines of code
👉 Prefer creating a dedicated data class to using a Pair or Triple
👉 Prefer exhaustive when statements
Читать (En)