Node.js Async: How to Use ES6 Promises

Introduction Promises are an alternative to callbacks for delivering the results of an asynchronous computation. They require more effort from implementors of asynchronous functions, but provide several benefits for users of those functions. Promises are a pattern that helps with one particular kind of asynchronous programming: a function (or method) that returns a single result …

Continue reading

[note] Nodejs Blocking vs Non-Blocking

Blocking Blocking is when the execution of additional JavaScript in the Node.js process must wait until a non-JavaScript operation completes. This happens because the event loop is unable to continue running JavaScript while a blocking operation is occurring. In Node.js, JavaScript that exhibits poor performance due to being CPU intensive rather than waiting on a non-JavaScript operation, such …

Continue reading

Top Packages/API for Node.js

nodemon nodemon is a tool that helps develop node.js based applications by automatically restarting the node application when file changes in the directory are detected.   express express.js is a Node.js web application server framework, designed for building single-page, multi-page, and hybrid web applications. It is the standard server framework for node.js.   body-parser It Parses …

Continue reading

Tour of The Backend Development Skill Set

Mobile Responsive and Mobile Friendly Mobile Responsive When viewed on mobile devices versus desktop clients, responsive email uses “media queries” to adjust the layout of the email message, font sizes, images, and buttons; in some cases, they can even be used hide or swap content. This means, in effect, there are two versions of the …

Continue reading

Introduction to Nodejs

The Javascript Engine V8 is an open source JavaScript engine developed by Google. Its written in C++ and is used in Google Chrome Browser. Node.js runs on V8. Microprocessor (a tiny machine) IA-32, x86-64, ARM, MIPS…Machine code (language): Programming languages spoken by computer processors. As an asynchronous event driven JavaScript runtime, Node is designed to …

Continue reading