DEV Community

Navneet Karnani
Navneet Karnani

Posted on • Originally published at blog.mandraketech.in on

[HttpServer Series] Who uses Java anymore ?

It was only recently, after the release of Java 21, that I was re-energised about the language and its potential.

To give you a background, I started programming in Java in the early days in 1997, and have seen it grow from 1.0.3 to its near stagnation in Java 8. It just felt that we are never going to get any updated language features. All users of the JRE were so afraid of moving to a newer version, because Java 9 broke everything, nearly. Java 11 came as a relief, but it was too little too late, and no one moved.

We saw all the web frameworks of old ( Struts, are you listening ? ) go away into oblivion, and Spring take its place. Java Beans, and the whole Enterprise Edition was too complex to work with, for regular web applications. Servlets stuck around, but there we no good hosting solutions, and still are not, that would allow one to write a Java based Web application, and just put it on a shared host. PHP took the cake there. In the recent years Javascript moved fast and innovated. And brought in the speed, and ecosystem that had stagnated under the leadership of Sun Microsystems.

At some point in the not so distant past, Oracle took over the mantle. And they brought their engineering prowess to Java. A long term game plan, and delivery like clock work helped get from 9 to 21, with a release every 6 months. The OpenJDK initiative started by Sun took a final shape closer to Java 20, but with effect from Java 17. We now have a lot of vendors who invest in building the Java Virtual machine, from the OpenJDK sources, and provide commercial support. They also provide specially optimised JVMs for different use cases.

Now there is trust in the platform. Trust that it will continue to evolve. Trust that there will be innovation. And there will be regular releases and support. The pace has picked up. Finally Java is ready to move faster than any other language and platform around.

So, my favourite language is back on the table for me. I am waiting for it to fully enable Functional Programming constructs, but thats not a deal breaker.

So, here I come Java. Re-learning the philosophy of the language, and the new features.

And along the way, building an "Annotation Free" web application using the JRE's HttpServer implementation. Trying to build a "ExpressJS" kind of code along the way. Who knows, if people like it, I may spawn it into a library.

Do your career a big favor. Join DEV. (The website you're on right now)

It takes one minute, it's free, and is worth it for your career.

Get started

Community matters

Top comments (0)

Great read:

Is it Time to go Back to the Monolith?

History repeats itself. Everything old is new again and I’ve been around long enough to see ideas discarded, rediscovered and return triumphantly to overtake the fad. In recent years SQL has made a tremendous comeback from the dead. We love relational databases all over again. I think the Monolith will have its space odyssey moment again. Microservices and serverless are trends pushed by the cloud vendors, designed to sell us more cloud computing resources.

Microservices make very little sense financially for most use cases. Yes, they can ramp down. But when they scale up, they pay the costs in dividends. The increased observability costs alone line the pockets of the “big cloud” vendors.

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay