4 ms·
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 defin
by ladberg 3y 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.
- PaulHoule 3y agoAs 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.
- emodendroket 3y agoMan... 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.
- sidlls 3y agoBeing 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.
- emodendroket 3y agoI don’t agree that Go is more common than node (or other options you did not mention like .NET).
- iainmerrick 3y agoI 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.
- austinthetaco 3y agoNodeJS 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-technologies-webframe-prof https://survey.stackoverflow.co/2022/#most-popular-technolog...
- cutler 3y agoGo more ubiquitous than Node.js? In your dreams.
- austinthetaco 3y agoaccording 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-technologies-webframe-prof https://survey.stackoverflow.co/2022/#most-popular-technolog...)
- shearos 3y agois node included when choosing front ends like react or vue?
- austinthetaco 3y agono. NodeJS is different than NPM (which is often used to install react/vue). NodeJS is the backend technology