CodeNewbie Community 🌱

Justice
Justice

Posted on • Updated on

Java or Kotlin in 2022? Whats easier and better for Android app developing ️?

Last time I needed to write an Android app, even though I already knew Java, I still went with Kotlin :D
I’d rather work in a language I don’t know than… Java… and yes, I know a decent Java IDE can auto-generate this code - but this only solves the problem of writing the code, it doesn’t solve the problem of having to read it, which happens a lot more than writing it.

I mean, which of the below conveys the programmer’s intent more clearly, and which one would you rather read when you forget what a part of the program does and need a refresher:

Image description

Even if both of them required no effort to write… the Java version is pure brain poison.

Check also:
JavaScript VS JQuery: Which one should you stop using?
JavaScript vs python: which is better?
How to disable button in angular on condition?
Dart and Flutter tutorials for beginners
Fix Flutter Null check operator used on a null value Error

Top comments (2)

Collapse
 
andrewbaisden profile image
Andrew Baisden

Google use Kotlin as default for modern Android apps so thats the best path to go down if you plan on using a native codebase.

Collapse
 
justiceankomah3 profile image
Justice

That's great thanks a lot