14 ms·
The only clear, objective advantage of using nodejs is that if your application is I/O heavy (e.g. tons of sql queries which can be executed in parallel), nodej
by gedrap 10y ago
The only clear, objective advantage of using nodejs is that if your application is I/O heavy (e.g. tons of sql queries which can be executed in parallel), nodejs event system is helpful and everything you need is pretty much out of the box. Other thing... it largely depends on personal taste and a matter of convention.
Reading his "Why I’m switching from Python to Node.js", doesn't seem like he was having an issue with that. And I don't really buy into the "same language everywhere" argument because come on, how hard is it to learn python, ruby, etc enough so that you can be productive? Not hard at all, unless you have hundreds of cubicles filled with drones.
Anyway, it's good to see that he made some reasonable conclusions after the experiment. That's a good sign :)
- MichaelGG 10y agoSame language, in theory, is great. Reuse structure definitions. Reuse rendering logic or even validation logic (perform checks on both, but make it easy to get into client-side). In general, keeping things "in sync". Also can make it easier to write in SPA style but offload rendering to the server when you need it (particularly first-page or reloads). Whether or not tooling is good enough to allow this (either with JS or compilers) is another issue.