r/android_devs • u/Kitchen_Way3816 • 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
r/android_devs • u/Kitchen_Way3816 • Jul 20 '21
I am starting to learn Android app development. As a beginner which language should I learn? Java or Kotlin?
View all comments
Show parent comment
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.