this post was submitted on 04 Sep 2023
64 points (95.7% liked)
Programming
17655 readers
211 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm not a programmer, but why is Java so high up? Are that many devices still running it?
I think it's a mix of three things.
Java is the only programming language to get popular as a result of marketing. Java was marketed so hard that the company who built it (Sun) went under, but Java did get some really wide adoption.
Java is the backbone of Android. If you want to build apps for Android you're using Java or one of the languages built on top of it (Kotlin, Scala, etc).
It's pretty hard to justify rewriting your codebase to another language. So Java is still around. If you need more proof of this, Most people are still using Java 8 (including android) we are currently at ~java 20.
Clarification:
Very few android jobs are Java anymore. Native android is almost exclusively Kotlin, barring legacy code.
This is because Kotlin has nearly full interop with Java code and integrates into Gradle well. You can just swap over to Kotlin dev with a small investment of a few weeks learning curve, then program faster and cleaner than Java.
Android is currently on Java 17 for what it's worth, though very few codebases have gone through the process of upgrading to 17/Kotlin 1.9/Gradle 8.1
Huh, I thought the android stack was basically hard stuck at Java 8 and that's why Kotlin still supports Java 8.
Nah we were stuck for years but then they migrated to 11 and now 17.
...I just ran the migrations so I'd know.