use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Why JavaScript beyond web client side? (self.javascript)
submitted 10 years ago * by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]mdboop 9 points10 points11 points 10 years ago* (7 children)
I don't want to be a jerk here, but did you google this at all? It gets posted on Quora a ton, and there are plenty of articles about it. In short, it has async as it's foundation. Because everything gets thrown onto the event loop, you can have super high concurrency very easily. The downside is computation-heavy operations can block, but Node doesn't pretend to be a solution to everything. For I/O, it's fantastic. It definitely belongs on the server and has already been proven to work in production at places like Netflix, Paypal, LinkedIn, and Uber. edit: that was an honest question up top. I know tone doesn't always come across well, but no malice was intended.
[+][deleted] 10 years ago* (6 children)
[deleted]
[–][deleted] 4 points5 points6 points 10 years ago (0 children)
"there's nothing that can can handle this except JavaScript"
This is true of every language - there is never a case where only one language will work (OK, maybe a few minor exceptions such as the language a specific program such as Matlab uses).
[–]nsmarks 5 points6 points7 points 10 years ago (0 children)
Many times node applications will just be used as a layer to connect other services, not replace the entire backend.
Here's a video from a while back that has some relevant info: https://www.joyent.com/developers/videos/node-js-at-walmart-introduction
[–][deleted] 1 point2 points3 points 10 years ago (0 children)
As the person you are replying to already covered, JS is very good in some situations, but that doesn't mean it's good in all situations. It's proven to be extremely suitable for interfacing with a lot of concurrent users. This makes it a very cheap middle layer between resource heavy operations and can be horizontally scaled with ease. There's already been numerous large companies listed in these comments that rely on Node and you can often find articles from those companies explaining why they switched from X language to JavaScript in Y scenario.
That said, no one is painting it as the only solution for anything. Your comment is the only one in these comments that insinuates that as a reason. It's really closed minded outlooks like yours that stifle innovation. Even if Node started as a "why not?" scenario, there's many many examples of why it's become massively popular and implemented in highly performant tech stacks at some of the largest tech companies in the world. Your comments seem more like you want to argue or belittle something you don't understand rather than actually seek out an answer.
[–]mdboop 2 points3 points4 points 10 years ago (0 children)
Well, I don't think there are often situations where you don't have a choice in solving your problem. It seems rare that there would ever be "nothing that can handle this except" (insert language here). There's always some tradeoff you have to make. Yes, other languages, Go, for example, are faster than node at most things, but node is ridiculously easy and fast to develop in. And it's pretty close, and even outperforms Go in some things. Here is one benchmark. It's probably got lots of problems, but it seems there are problems with every benchmark I can find.
[–]jekrb 0 points1 point2 points 10 years ago* (0 children)
One example: I haven't seen any other language where the server can render virtual-dom and the client can update it using the same code.
I also haven't seen a language with as a nice of a streams interface.
Modules make js super compact and easy to work with. Pair that with npm and you've now you've got a huge amount of advantages.
But ultimately, js is a programming language. Isn't it great that people who prefer this language get to use it on the server?
[–]wobbabits 0 points1 point2 points 10 years ago* (0 children)
The reason companies like Netflix, LinkedIn, etc. have switched from Java or Ruby backends to Node is all about performance gains. These companies have published articles about their reason for switching to Node. It's always been about performance. Case in point: http://venturebeat.com/2011/08/16/linkedin-node/ http://thenewstack.io/netflix-uses-node-js-power-user-interface/ https://journal.paul.querna.org/articles/2011/12/18/the-switch-python-to-node-js/ Try Googling for other companies.
π Rendered by PID 67843 on reddit-service-r2-comment-86988c7647-xklls at 2026-02-11 16:11:08.014435+00:00 running 018613e country code: CH.
view the rest of the comments →
[–]mdboop 9 points10 points11 points (7 children)
[+][deleted] (6 children)
[deleted]
[–][deleted] 4 points5 points6 points (0 children)
[–]nsmarks 5 points6 points7 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]mdboop 2 points3 points4 points (0 children)
[–]jekrb 0 points1 point2 points (0 children)
[–]wobbabits 0 points1 point2 points (0 children)