Hacker News new | ask | show | jobs
by ladberg 1137 days ago
I feel like you misunderstood the OP, they are claiming that Node allows you to reuse the same code to do validation on both the client and the server. By definition that means they are also doing server-side validation, and they are not relying on it being checked on the frontend.
1 comments

As I see it though, node.js on the backend is not mainstream, most sites are still using JVM or other back ends. Using the same code for the front end and the back end is a dream that has been pursued in various forms but it isn’t mainstream.
Man... if you don't think node.js on the backend is mainstream at this point I don't know what to tell you. It's not even the hyped-up new thing anymore.
Being not hyped up doesn’t mean it’s mainstream. Most backends are in Java, Go, or PHP. Python and Ruby take up most of those that aren’t. It’s rare to find node on the backend in comparison.
I don’t agree that Go is more common than node (or other options you did not mention like .NET).
I wonder if part of the confusion here is that “backend” is pretty overloaded. There are backends like API servers, and web server backends (which at Google they call “frontends”!)

I’d guess that Go is relatively more popular than Node for API servers, and Node is more popular for web servers.

And as you note, both are probably less popular than languages like Java and PHP.

NodeJS is one of the most popular API servers out there. Express is wildly popular, more popular than ASP.net laravel according to the professional developer survey https://survey.stackoverflow.co/2022/#most-popular-technolog...
Go more ubiquitous than Node.js? In your dreams.
according to the latest stackoverflow developer survey, NodeJS is extremely common and used quite a bit more than things like ASP.net (https://survey.stackoverflow.co/2022/#most-popular-technolog...)
is node included when choosing front ends like react or vue?
no. NodeJS is different than NPM (which is often used to install react/vue). NodeJS is the backend technology