r/webdev • u/gece_yarisi • May 18 '25
Discussion I wonder why some devs hate server side javascript
I personally love it. Using javascript on both the server and client sides is a great opportunity IMO. From what I’ve seen, express or fastify is enough for many projects. But some developers call server side javascript a "tragedy." Why is that?
193
Upvotes
View all comments
Show parent comment
13
u/divad1196 May 19 '25 edited May 19 '25
That's a long comment to say: "You need ultra speed, it's not good! Types are important" without considering for 1 second the context.
The post mentions javascript, but we can easily assume typescript as well. So here are the types.
We don't always care about high performance, so go down your high horses with the "you never done it at scale in big companies". A good dev takes the context into consideration, only beginners always jump on the fastest techs. There are many projects done in javascript and are fine.
For the security, you are also just giving one side of the story. Supply chain attacks happens everywhere, remember log4j? You have native random library, great but is it cryptographically safe? Etc... if you just consider the OWASP20 list, that concerns mostly all languages. I am not saying javascript is safe, I am saying that any language is equally as bad, maybe in it's own way.
For the CI, you again mostly focus on the duration/speed. The heaviest jobs happen once the MR exists. With proper flow, it doesn't run that often. It's not that slow or bottersome compared to what is needed with C/C++.
All languages have their pros and cons, including javascript. But you have a narrow vision. I wouldn't say that javascript is the best choice at scale, but it's not as bad as you mention, you just never used it professionally while you did with C#. And the most important thing: most projects are small.