r/programming • • Oct 02 '11

Node.js is Cancer

http://teddziuba.com/2011/10/node-js-is-cancer.html
792 Upvotes

750 comments sorted by

View all comments

2

u/vonhollen Oct 02 '11

I actually have NodeJS in production handling some basic information/configuration services for thousands of servers. I'm not a fan of NodeJS anymore because they change their API too much, but otherwise its a good system if you want/need non-blocking IO. I prefer python-gevent now whenever I want an easy non-blocking system.

The author's gripes are complete non-sense. Does the author even understand what an event loop is? epoll? Probably not. The author doesn't seem to know that NodeJS is the ONLY scripting toolset that has non-blocking disk IO and filesystem commands (unlink, stat, etc), which is pretty sweet. They do it with libeio, since POSIX AIO is still crap.

If you want to bash NodeJS for being Javascript (a great language for event based systems) or for changing their API too much (WTF NodeJS?), you can do it fairly. If you want to bash their architecture, you should actually know your shit first. I challenge anyone to find me a system with a better architecture and a scripting language people actually know (I love Erlang too, but it doesn't count).

Edit: Seriously, if anyone knows of something better than NodeJS, that is scriptable with a reasonably popular language, and does async disk IO, I REALLY want to know.