concept Node.js in category sails

appears as: Node.js
Sails.js in Action

This is an excerpt from Manning's book Sails.js in Action.

One of the highest hurdles for most new Node.js developers is learning how to write asynchronous code. Even if you’re already familiar with AJAX callbacks, timeouts, and event handlers from client-side JavaScript, the sheer number of nested callbacks that show up when writing JavaScript on the server can be a bit intimidating at first. There are also new patterns to learn: concepts like asynchronous loops (async.each), asynchronous recursion (imagine building Dropbox in Node.js), and asynchronous conditionals (if/then/finally); or doing something asynchronous under some conditions and something synchronous under others.

  • The Sails technical stack consists of Node.js, Sails.js, a text editor, and the command-line shell.