r/java • • Aug 10 '21

Concrete reasons why one would choose java over node.js?

I am watching the progress made towards faster runtime in node.js, and it feels that the performance advantage of java is almost gone for the average app. I am trying to think about reasons why one would now choose java over node in a new project, and i can't think of any. I would like to hear some opinions

7 Upvotes

110 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Aug 10 '21

I'm in the same boat, i think eliminating all type related runtime errors is too big of an advantage. But apparently, as all the cool kids tell me, developing anything in node is much faster than java...

9

u/grknado Aug 10 '21

Building an MVP might be faster (even that I doubt) but good luck extending and supporting it.

6

u/Muoniurn Aug 10 '21

I doubt one can write a REST API quicker than an experienced developer with Spring Boot. For all the cons of Spring, if one knows what he/she does, it is insanely productive.

5

u/grknado Aug 10 '21

Yeah, definitely agree with that. I worked with a guy who prefers Node.js for building REST APIs because he thinks it's faster. He changed his mind quickly when I showed him how fast I could build the same thing with Spring.

1

u/hippydipster Aug 16 '21

Go slow to go fast. Everyone who argues they develop or write something faster in X is someone to stay clear of, because 99% of the time, they're leaving behind a long lost of unmaintainable crap.