|
|
|
|
|
by kaoD
4195 days ago
|
|
> Also, why use it (Node.js) on the server? Its not even that fast Not only it's still reasonably fast (21st is great, it's mostly surpassed only by C and Java), but it also has a much better ecosystem than most platforms (especially C and Java), it's faster to develop in (especially C and Java) and shares language with client side. Sharing a common codebase is very important for me. I found in most of my web projects I'm reusing code between server and client. Ever worked with code that does (or should do) the same thing in different codebases? It's just a nightmare. Having the same React code be rendered in the server (fast, SEO-friendly) and in the client (offloads resources off the server) is just too good. NodeJS looks like a decent compromise to me, isn't it? |
|
Same language is an advantage, so is development speed, I agree.
But: C++, Java, Lua, Ur, Go, Ruby and Erlang are all faster than JS, and especially Ruby is a much nicer language. I don't hate Node.js, it has its sweet spots and the tooling feels nice and lightweight, but its not (yet) a very good general purpose tool. Its just not yet on the sane part of the hype curve, and I don't want to be the guy who has to maintain that callback hell 5 years from now.
But ECMAScript 6 is definitely moving into the right direction.