News for hackers. Stuff that matters.
Re:The love and hate of Node.js by dc-tech-fan on Wednesday May 16, 2012 @01:18PM (#3982994)
> The only technical problem where I've seen node be a unique solution is dealing with third party apis concurrently.

Use a library like Async, it makes this really easy.

https://github.com/caolan/async

(assume redis, mongo, facebook, and callback are all functions)

async.parallel([ redis, mongo, facebook], callback);

callback is called when all of the others are complete. If you have dependencies, like facebook needs the output of redis and mongo then use async.auto which will automatically run things in parallel and in the order you need them.

Re:The love and hate of Node.js by mcs on Wednesday May 16, 2012 @01:44PM (#3983122)
Yes, what I was saying is that Node makes that really simple, and PHP, Python, Ruby, etc don't. That's more of a side effect of having everything be asynchronous though.
Re:The love and hate of Node.js by anonymoushn on Wednesday May 16, 2012 @02:49PM (#3983433)
This is really simple in Python using greenlet, stackless, or gevent.
Re:The love and hate of Node.js by falcolas on Wednesday May 16, 2012 @04:28PM (#3983868)
Or threads. Simple, non-shared state threads are not that difficult to write, and for IO bound operations, they are not terribly inefficient.