You are currently viewing How does Kotlin “Clean Code” look like?

How does Kotlin “Clean Code” look like?

Hello there,

So I am coming from a little bit C and more heavily python into Kotlin.

Now, the one thing I am wondering as Kotlin is pretty young: how do standards look like here?

For example in python you have something like pep8. This tells you what names for classes and variables look like, how many white spaces, and so on. There are also different standard methedologies on how a doc string for a function should look like. This even goes beyond on frameworks like for example django as a backend. Once again, here you have clear design principles or sometimes even different style guides by certain companys that evolved over time.

This offers great starting points to write concise, clean, and readable code with widely supported/known conventions others can recongnize and stick to.

How does it look like for Kotlin? I mean sure, IntelliJ does give a lot of suggestions, but I’d rather see a handbook on what is a good way of doing things starting out with kotlin so I am getting used to a “healthy coding style” quickly.

Any resource highly appreciated.

Thanks in advance 🙂

submitted by /u/ReactCereals
[link] [comments]