# Kotlin best-practices

**URL:** https://discuss.kotlinlang.org/t/kotlin-best-practices/16529
**Category:** Uncategorized
**Created:** [February 27, 2020, 9:04pm UTC](https://discuss.kotlinlang.org/t/kotlin-best-practices/16529 "2020-02-27T21:04:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![medium](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/medium/32/10404_2.png) [@medium](https://discuss.kotlinlang.org/u/medium)
#### Post date: [February 27, 2020, 9:04pm UTC](https://discuss.kotlinlang.org/t/kotlin-best-practices/16529/1 "2020-02-27T21:04:59Z")

</div>

My team struggles with Kotlin coding conventions. From my point of view there is an overuse of `it` ([related post](https://discuss.kotlinlang.org/t/i-hate-it/16506)), `apply`, `let` and friends. This is especially hard to read if blocks are nested or if endless trainwrecks of “let … let … let” are used.

I’m looking for best-practices in Kotlin, something like this:

- [Coding Conventions](https://kotlinlang.org/docs/reference/coding-conventions.html)
- [Idiomatic Kotlin. Best Practices.](https://phauer.com/2017/idiomatic-kotlin-best-practices/)
- [Kotlin Best Practices](https://batchofcode.com/2018/04/13/kotlin-best-practices.html)
- [When to use Kotlin’s standard functions](https://blog.danlew.net/2019/02/12/when-to-use-kotlins-stdlib-functions/)
- [Effective Kotlin](https://leanpub.com/effectivekotlin) (book $)

Do you know more good sources?

---

<div class="post-metadata">

### Author: ![imanushin](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/imanushin/32/5471_2.png) [@imanushin](https://discuss.kotlinlang.org/u/imanushin)
#### Post date: [February 28, 2020, 9:37am UTC](https://discuss.kotlinlang.org/t/kotlin-best-practices/16529/2 "2020-02-28T09:37:39Z")

</div>

I can advice [detekt plugin](https://github.com/arturbosch/detekt). Just add it into your gradle build, it will check for a lot of rules.

So you don’t need to learn style guide, this tool just insists on it.
