Promises & Partials
09/29/2015
As a full-stack JavaScript engineer, I work on a happy mix of both back-end and front-end projects.
On the front-end side of the stack, I write my fair share of AJAX calls. That is, getting and setting data from back-end services. Among the many different tools to accomplish this, I find using promises & partials to be very useful.
The functional pattern of getting XHR data with promises and partials allows one to write code that is more immutable and reusable.