DEV Community

Discussion on: What irritates you the most as a developer? 👩‍💻👨‍💻

Collapse
 
zilti_500 profile image
Daniel Ziltener

Why people are even considering in the first place to use JavaScript engines server side is beyond me...

Collapse
 
pj profile image
Paul Johnson

There's parts of the ecosystem I like, on it's own I think Typescript is pretty good and at least in theory the massive amount of investment that browser vendors make on Javascript VMs should benefit performance vs say Python.

I think it's more the problem of combining the existing Node JS module system, es6 modules, bundling for the frontend etc.

But yeah, things like lack of proper integer and float types is pretty dumb 😃.

Collapse
 
jdforsythe profile image
Jeremy Forsythe

JS is actually very good on the server. Ask Netflix.

Thread Thread
 
zilti_500 profile image
Daniel Ziltener

Ahh yes, that must be why the language they use the most is Java instead of JS

Thread Thread
 
jdforsythe profile image
Jeremy Forsythe • Edited

While it's true that they still run a lot of Java code, all of their web stack is JS. Or as they put it, everything a user sees is written in JS.

In another case, PayPal found that an app rewritten from Java to JS was more performance, serving double the req/sec one one core as the Java app did on 5 cores, so they made the switch.

Thread Thread
 
zilti_500 profile image
Daniel Ziltener

PayPal has (or at least had) reportedly such a horribly awful code base, they could've rewritten it in BASIC for an interpreter and still get a 5-time performance increase, lol! Really they had to rewrite their stuff anyways. Java still is the most performant bytecode VM out there, let alone speaking of the performance of tech like GraalVM... (plus it is multithreading capable, unlike Node)