The third slide is out of date. 1.30 removed support for promises. All previously promised-based functions now take a callback parameter as their last argument instead, so the slide would be written:
There are a series of articles on howtonode.org about flow control in node and cleaner ways to do this. Not mentioned on howtonode, but Kris Zyp also implemented a CommonJS promises library on the node callback pattern.
Comments
The third slide is out of date. 1.30 removed support for promises. All previously promised-based functions now take a callback parameter as their last argument instead, so the slide would be written:
There are a series of articles on howtonode.org about flow control in node and cleaner ways to do this. Not mentioned on howtonode, but Kris Zyp also implemented a CommonJS promises library on the node callback pattern.Yeah, I've thought about submit http://howtonode.org as well. The articles are explained thoroughly and clearly, very nice stuff there.
Thx for correcting the promise stuff.