r/java • • Jun 10 '24

[deleted by user]

[removed]

613 Upvotes

594 comments sorted by

View all comments

1

u/sysKin Jun 11 '24 edited Jun 11 '24

EDIT: When I refer to speed, I mean development time!

Why do you think Java has slower development time?

If you think it's the famous verbosity, then no, it's handled just fine by having an IDE that understands the language and can write things for you. Plus modern language features (lambdas, records...) reduced that too.

If you mean how you can quickly make a web endpoint, Spring solved that years ago. Moreover, any boilerplate dwarfs in comparison with the actual business logic you have to write to do the actual stuff.

Or do you mean some other aspect of Java being slower? If so, which?

Don't get me wrong, I bet a language/environment (Go, NodeJS) specifically designed with a built-in web server for web app development can reduce the time from zero to your very first endpoint.

Java was not, and indeed lacked in that area in the JavaEE days. But now, Spring and Spring Boot give us pretty much the same experience, perhaps with a "few" more megabytes to set things up. But we're talking minutes at the beginning of the project, that is really not significant in the grand scheme of things.

After that, the fastest-to-develop language is mostly the one you're most familiar with.

1

u/Beamxrtvv Jun 11 '24

I will look into Spring Boot much more, that was a big source of my ignorance. I think it was very anecdotal of me to say, having used Express for a good bit now, that it is “faster” because I can be serving “Hello World” json in 45 seconds, which was a shallow analysis to begin with.