Live data from Hacker News

Ask HN: Using Java for a web application in 2023

news.ycombinator.com

31–40 of 69 posts

Re: Ask HN: Using Java for a web application in 2023

#31

Honestly hacker news is the wrong place to ask questions about Java. There is lots of biased opinions with little experience using Java.

I have lots of experience in using Java (Amazon SDE), writing quite a few web services and applications with it, including front end with JSF. As such I can safely say that anyone that thinks Java is good to use for anything these days, especially with things like Log4Shell, simply doesn't know enough about computer science. Java is a poorly designed language with corporate bullshit throughout, and while it may have…

Used Java a lot.

It decent for applications, web services. Prefer C++ for embedded programming. Python for scripts and data wrangling and ML.

Sorry but what do I not know about computer science?

What a general purpose programming language choice have to do with knowing computer science?

Re: Ask HN: Using Java for a web application in 2023

#33
post #5

While I would highly highly recommend against it there is GWT, & Vaadin. They transpile java code to JavaScript, HTML, and css. They are tightly coupled to their RPC apis.

I use GWT at work daily. Though we don't use GWT RPC at all and just have normal http endpoints returning JSON on the server, so I wouldn't describe it as tightly coupled to the RPC system.

That said, I wouldn't recommend it for new projects.

Re: Ask HN: Using Java for a web application in 2023

#34

Honestly hacker news is the wrong place to ask questions about Java. There is lots of biased opinions with little experience using Java.

I have lots of experience in using Java (Amazon SDE), writing quite a few web services and applications with it, including front end with JSF. As such I can safely say that anyone that thinks Java is good to use for anything these days, especially with things like Log4Shell, simply doesn't know enough about computer science. Java is a poorly designed language with corporate bullshit throughout, and while it may have…

Q.E.D.

Re: Ask HN: Using Java for a web application in 2023

#35
The Java frameworks are "modern". They're common to use in new projects, and the Javascript frameworks often mimic them.

That said, I'd honestly start by ignoring the common frameworks and just use something like Jetty embedded to create some API endpoints.

There's a lot of learning required for the common frameworks like Spring Boot. Browse the documentation and you'll see there's a lot there. Plus, they tend to be a debugging challenge for new people due to use of reflection and the like.

Re: Ask HN: Using Java for a web application in 2023

#36
post #14

Earlier quoted context omitted.

For web apps, why use two languages if you can get away with only one? unfortunately, is hard to beat JS/TS here.

Depends. I hate the whole JS ecosystem and NPM hell so if I can get away, I do. I can never go for JS on the backend personally. I am happy with good old PHP, Go, Python etc.

TypeScript on the backend gives you that same PHP feeling though.

Re: Ask HN: Using Java for a web application in 2023

#37

Honestly hacker news is the wrong place to ask questions about Java. There is lots of biased opinions with little experience using Java.

I have lots of experience in using Java (Amazon SDE), writing quite a few web services and applications with it, including front end with JSF. As such I can safely say that anyone that thinks Java is good to use for anything these days, especially with things like Log4Shell, simply doesn't know enough about computer science. Java is a poorly designed language with corporate bullshit throughout, and while it may have…

The language is ok in my opinion, the community though, that's another story... The worst overengineered projects I ever worked on were written in Java.

Re: Ask HN: Using Java for a web application in 2023

#39
I think Java is a solid choice for a data heavy application in 2023. As many have mentioned spring boot is a man excellent choice for the Java backend . You should also take a look at JHipster. It combines the strengths of Java with a modern front end like React or Vue or anything else of your choice to make a modern front end .
Post reply on HN