Author: Rahil Shaikh

All Javascript NodeJS

Avoiding callback hell in Node.js

Callback hell is a phenomenon that afflicts a JavaScript developer when he tries to execute multiple asynchronous operations one after the other. Some people call it to be the pyramid of doom. Let’s have a look at an example of what we call callback hell. doSomething(param1, param2, function(err, paramx){     doMore(paramx, function(err, result){   […]

All AngularJS Javascript

Fancy Alert and Confirm Box in AngularJS

Alerts and confirm boxes are an important part of any web application. Alerts are usually used to gain the user’s attention to some important action that is begin taken. Confirms are required to get the assurance of the action taken by the user. That being said, the standard JavaScript alert and confirm are not that cool […]

All Angular 2 AngularJS

Data Binding in Angular 2 Explained

Data Binding is a feature of modern frameworks which synchronizes the data displayed in the view and that holds with the model. Without data binding, a developer would have to write code that constantly synchronizes the view  to the model and vice versa. A JQuery developer would tell you how painful this can get when […]

All ExpressJS NodeJS

Intercept response body in NodeJS express app

Intercept response body or transform response body in express which, ever way you call it, one thing is for sure its not as straight forward as it is for the request body object. In this tutorial we will write an express middleware to intercept the response body object of an API request. You may have written […]