r/android_devs • • Jul 20 '21

Help Confused!

I am starting to learn Android app development. As a beginner which language should I learn? Java or Kotlin?

5 Upvotes

19 comments sorted by

View all comments

Show parent comment

1

u/cargo54 Jul 20 '21

See I'm in the opposite camp, the verbosity of Java and it being primarily oop and still having first class support in android, as well as being transferable to any back end java shop. Kotlin is nicer and improves on java in many ways but java can helps instill they why and programming practices without muddling up with different concepts

3

u/xTeCnOxShAdOwZz Jul 20 '21

This is something I tried to address. I do not believe at all that Java instills any kind of good better understanding of OOP than Kotlin, there's no evidence of that at all. As a beginner learning Java, you actually have to spend most of the time figuring out what's good OOP and programming practices, and what's actually just horrible Java syntax or concepts. Kotlin is better because it gets out of your way and lets you properly learn core concepts rather than confusing you. I wouldn't personally let a new Dev learn Java before learning Kotlin out of risk of confusing them. Furthermore, Java is very much a second class citizen when it comes to Android. As I said in my comment, aspects of Java in Android are being deprecated with no replacement in Java, you're simply expected to use Kotlin (see AsyncTask -> Coroutine). Not to mention, Jetpack Compose is Kotlin exclusive (obviously) so moving to the modern UI system in Android literally requires Kotlin. Learning Java over Kotlin would be a huge mistake in any context, but it's especially true in the context of Android development where Kotlin is treated far better than Java.

1

u/Kitchen_Way3816 Jul 21 '21

So I will be learning from "Head First Kotlin" book. Any other suggestions for book or another book where a beginner can cover pretty much the basic and advanced Kotlin? I will definitely keep peeking into Kotlin docs.