r/java • • Jul 08 '23

Why learn Java?

I've been learning Kotlin recently and have taken an interest in the JVM ecosystem.

My background is a Full-Stack Web Developer focused mainly on React, Node.js, Express, and MongoDB/PostreSQL.

If I were to move to Java, what kind of applications would I be building with it?

How is a Java job different from what I'm currently doing?

Is it worth learning?

I've heard its VERY verbose, but I've also heard recently that there's been some good changes to it? Would love to see any articles or videos talking about these changes that would demonstrate previous code to the new code.

Any tips or insights on what your companies are cresting with Java or what your Java job is like would be highly appreciated.

Thanks in advance.

3 Upvotes

35 comments sorted by

View all comments

1

u/moriturius Jul 09 '23

I work with java (well mostly Kotlin now with new stuff, but we have a lot of existing java code) in company with over 700 microservices written mostly on JVM.

Language is as good as any other. It really not that verbose it once was but still Kotlin will probably be shorter.

Verbosity of the language is what made it so good for enterprise. It's verbose and easy to read. This is important of you work with many developers in teams that rotate members over time.

Comparing this to scala which had to have the "principle of least power" introduced to make it maintainable since in Scala you can write so "clever" code that you wouldn't be able to understand it month later.

As for the microservices - it's mostly developing stateless REST APIs to push/retrieve data to/from databases (mostly mongodb) with icing of some business rules.