https://kotlinlang.org logo
#getting-started
Title
# getting-started
k

Krystian

09/27/2023, 9:22 AM
What are some good resources on writing idiomatic Kotlin? I always feel like my code, the bigger it gets starts to look more like Java/C.
j

Johann Pardanaud

09/27/2023, 9:36 AM
Did you read the official Idioms page? It's a good start 🙂
Also, the documentation about collections is great, it provides useful examples with proper idioms
I do not know any other idiom resources than the official ones 😅
r

Ronny Bräunlich

09/27/2023, 10:00 AM
Effective Kotlin maybe?
b

bram

09/27/2023, 10:16 AM
Also to some extent just using IntelliJ, the static code analysis is quite good in highlighting some idiomatic Kotlin functions you can replace existing code with. Especially valuable every new Kotlin version when new APIs are released.
5
s

Stephan Schröder

09/27/2023, 11:04 AM
a

Alejandro Serrano.Mena

09/27/2023, 11:50 AM
if you don't mind diving a bit into functional-style idioms, https://arrow-kt.io/learn/design/ has several tutorials and guides
k

Krystian

09/27/2023, 2:55 PM
Thanks everyone! Very helpful
Will check them all out soon
a

Arjan van Wieringen

09/27/2023, 5:52 PM
What do you mean that it starts looking like Java/C? They are wildly different