top | item 27009270

(no title)

throwaway189262 | 4 years ago

Multi threading has zero overhead in normal Java web frameworks. It's thread-per-request so you don't need to worry about thread safety any more than you do in JS. That you didn't know that implies you haven't worked with many Java web frameworks.

JS has become a huge language, just as big as Java. So is the runtime, V8 is gigantic, comparable to JVM. I use both every day.

Vert.X is nearly identical to Express JS including all the callback stuff. And that's one of the harder Java frameworks to use

discuss

order

aristofun|4 years ago

Its very unprofessional and not polite of you to assume my knowledge from few words.

As for java frameworks like spring they mostly suck because of way too verbose java syntax and over engineering mentality usually coming with any java framework.

Also i never said express js is a great example of web framework.

But i know for sure that i can spin up simple crud with db, tests and some logic behind it in less than hour in rails.

While java devs still arguing about “right” architecture.

throwaway189262|4 years ago

That was rude especially for HN, my apologies. I'm a big Java fan but you're right about verbosity and ceremony about startup. There's ways around it but not stuff you would read in a book. Tribal knowledge really like starting a project using a maven archetype and using lombok judiciously.

Java gets a bad rap which bothers me because it's really a good choice for backend work even today. Sometimes it bothers me enough that I lash out needlessly.