Write a post

Enjoy this post? Give Codementor Team a like if it's helpful.

20
9
Discussion

What do you think about Kotlin as a first-class language for Android?

Published May 18, 2017
What do you think about Kotlin as a first-class language for Android?

We were super excited to see Google's announcement that it will officially support Kotlin on Android!

We're particularly interested in Kotlin's expressiveness and its simple syntax. We also love that it's fully compatible with existing Java code. We look forward to seeing the Kotlin community grow. 💪

Do you have any experience with Kotlin? In your opinion, how does it compare to Java? Do you think Kotlin will affect Android app development the way Swift did for iOS?

Let us know in the comments below 👇 or in your own post.

Discover and read more posts from Codementor Team
get started
Enjoy this post?

Leave a like and comment for Codementor

20
9
9Replies
Jayson Minard
a month ago

You should think of Kotlin as a first class language anywhere you can use it, not just Android. It is the strongest replacement for Java that a team can walk into with minimal effort and benefit from in their first days of use. You will gain tons, and lose nothing. This post pretty much sums it up: http://steve-yegge.blogspot.com.uy/2017/05/why-kotlin-is-better-than-whatever-dumb.html

Krzysztof Zienkiewicz
2 months ago

I absolutely LOVE Kotlin. I’ve been following it’s development for several years and have been using it a lot recently. Its conciseness and null-safety (nullability is part of the type system) as well as interop with Java are probably the features that inspire most people to give it a try but it has so much more to offer.

First class support for properties and delegation are a godsend for eliminating boilerplate code. Functional types make functional-style programming a lot simpler while explicit inlining makes it more efficient than Java. A lot of Java statements become expressions in Kotlin making the code more fluent.

And of course, no semicolons!!!

There are a lot more Kotlin has to offer (modern syntax, extension functions, easier and reifiable generics, infix and operator functions, type-safe builders) and the learning curve is fairly flat.

So far the most annoying thing I’ve found is the incongruity of SAM conversions (Kotlin lambdas can be used for Java functional interfaces but not for Kotlin functional interfaces). But that’s a small price to pay for all the power the language packs.

Hit me up if you’re interested in learning Kotlin or you have any questions.

Sadman Samee
2 months ago

This is what I think
https://medium.com/p/should-i-learn-kotlin-or-stick-to-java-3a73c3580ac3

Joshua Aroke
6 days ago

I sand with you absolutely !

Show more replies

Subscribe to our weekly newsletter