A monthly overview of things you need to know as an architect or aspiring architect. Unlock the full InfoQ experience by logging in! Stay updated with your favorite authors and topics, engage with ...
Developers use JavaScript promises to model asynchronous operations in web and server-side programs. Here's a quick look at five ways to use promises in your code. Promises are a central mechanism for ...
var a, async = function(f) { setTimeout(function() { var r = 'step 2'; f(r); }, 1); }, myFunc = function() { a = 'step 1'; async(function(r) { a = r; // should reset ...
‘Higher-order functions’ is a fancy term for functions that take other functions as arguments or that return functions. Very powerful! Last week, I casually dropped the term “higher-order function” ...