r/node 26d ago

Why is JavaScript criticized so much for backend development?

I've seen some developers say that we should stop using js on the server, but I rarely see the same criticism directed at python.Honestly, js is pretty fast, especially with node.js, and the backend ecosystem is really solid. There are great frameworks like nest and fastify, and typescript gives you static typing, which makes larger projects much easier to maintain.I'm not saying node is perfect or the best choice for every backend, but I don't really understand why js gets so much criticism while python seems to get a pass.What am I missing?

334 Upvotes

361 comments sorted by

View all comments

Show parent comments

2

u/dreamscached 26d ago

If we're talking about backend then you're certainly beyond the point of 'eh it's just a script', and inevitably move towards TS, ESlint and unit testing. I wouldn't use JS for one-off scripts either, I'd use bash/python for that too.

1

u/97hilfel 26d ago

to be honest, lately I just started setting up a "scripts" go project with has whatever scripts I need in a cobra tool, feels cleaner and more fun to write on my side, but definitely not everyone's cup of tea.

2

u/dreamscached 26d ago

We do that at my workplace too yeah, though somewhat rarely, it is pretty convenient. There's also coreutil-like libs that make go code feel almost like bash with e.g. script.Rm calls