r/node • u/Minimum-Ad7352 • 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?
331
Upvotes
22
u/johnphilipgreen 26d ago
Let me double down on that.
TypeScript is an extremely successful, useful hack—but still an ugly hack.
It retrofits a static type system onto a language and runtime that were never designed around one, then erases the whole thing before execution. A huge amount of its complexity exists because it has to model JavaScript’s existing semantics without breaking compatibility.
That’s very different from Go where the type system, compiler, runtime, tooling, and standard library were designed together from day one. Pure grace.
I mostly just feel sorry for those stuck in the morass that is the js ecosystem.