< Back to java

All 5 comments

user image

linhung0319

kotlin is easier to understand Not for everyone. to learn If you already know Java, you don't need to learn it at all, but you would need to learn Kotlin. safer That is true, mostly because Kotlin is more modern whereas Java has existed for decades. Which is also the main reason why people still use Java: it is more established.

user image

linhung0319

I work at a large international tech company (not FAANG but FAANGish). I don't even know how many microservices we have and they are all written in Java. Large companies like ours like when resources are easy to move so the higher ups want them all to look familiar. So only Java is allowed for backend. Starting to allow kotlin would mean fragmentation where some teams would probably migrate (but not over night since there's a shit ton of code) and suddenly you have less flexibility in terms of moving resources.

user image

linhung0319

The code is going to look way different anyways, the language doesnt really matter. Even comparing java 8 to 21 is a huge difference but higher ups like that everything stays java eventhough someone trained in java 8 can't fully comprehend java 21 syntax. The difference between 8 and 21 is about equal to java and kotlin.

user image

linhung0319

No, I know this. What I meant was that at a company of this size - you don't want fragmentation because you want to be able to move resources. Our CTO has multiple times said that if you want to become really good at something - you have to limit the amount of things you try to be good at.

user image

linhung0319

That's a common missconception, a legacy Java project could have mixed language codebases without any kind of migration work.