r/node • • Aug 15 '26

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?

335 Upvotes

361 comments sorted by

View all comments

Show parent comments

1

u/MuslinBagger Aug 17 '26

I think way back eval was how they did modules and imports, until the language improved

1

u/Remicaster1 Aug 17 '26

The first commit was on 2023 for reference

Their entire architecture is a mess, they used eval to evaluate the action sent by client

For example we would be doing something like POST /v1/auth/login

They be like POST /v1/backend Body params will have the "action" property. For example "action": "login". Then used eval to run the said function for login

1

u/MuslinBagger Aug 18 '26

That is still not as bad as it is triggering, provided you whitelist the action values. The main thing to guard against is clients being able to do things they're not allowed to.

1

u/Remicaster1 Aug 18 '26

Yeah but the problem was, they didn't have any proper middleware before they got hacked, and even after that incident their guard was also another eval as far as i recalled, with regex below the guard so it's kinda pointless

1

u/MuslinBagger Aug 18 '26

How do idiots get so much money that they can start a company?