Front End Development, MEAN, Node.js

Why and how finally{…} block is NOT meaningless

A definition first (from the internet): try-catch-finally is used to handle runtime errors and prevent them from halting the execution of a program. The finally block triggers regardless of: what is implemented inside the try-catch block any errors encountered inside try-catch block any return statement written inside the try-catch block Example 1 Consider this example where there’s no error: (()=>{ try { console.log(`Try block triggered`) […]

January 25, 2023

MEAN, Node.js

Top level await() without async() function in NodeJs

Here’s how async-await function typically works: function myDummyBackendCall() { return new Promise((resolve) => { setTimeout(() => { resolve({ name: “Shivang”, id: “asmdhajkdhajdsh8qweuqoweuiqepoi-0q-0eueiuaisjdaKcjaisku”, }); }); }); } // Used an async wrapper function to make an await call (async () => { let data = await myDummyBackendCall(); console.log(data); })(); If you are a JS developer, you […]

January 24, 2023

Front End Development, MEAN, React.js

Server-side Rendering vs Static Site Generation in Next.js

NextJs is a framework to build a full-stack application with features such as server-side rendering using React framework. Today, it has become a consolidated framework for building amazing web applications. There can be many advantages of Next.js as: Great for SEO. Image Optimization – Next.js provide its Image component that improves the performance of the […]

September 28, 2022

AngularJS, MEAN, React.js

Managing Form State In React Using Redux Form

What is Redux Form? Redux Form is a HOC(Higher Order Component) which uses react-redux so that the HTML forms in react can store all its state in redux. Advantage of using Redux Form? Redux Form is very easy to use and implement, we just have to wrap our form component with the HOC provided by […]

May 1, 2022

AngularJS, Grails, MEAN

Aliasing Localhost URL in Mac OS

Have you ever wanted to use https://something.i.want.com:8080 instead of the same old boring https://localhost:8080 ? Well here is how you do it on Mac OS. By default, the IP of localhost is 127.0.0.1. ‘localhost’ itself is an alias. To make it your own follow the instructions below. 1. With sudo access vi /etc/hosts $sudo vi […]

August 25, 2021

Agile, MEAN, Node.js

How are 10 Global Companies Using Node.js in Production?

Node.js is increasingly becoming a go-to technology for multiple companies across the globe. As Node.js emphasizes on concurrency, speed, and intensive data exchange along with employing push technology over web sockets,  it has helped companies to build various applications such as social media apps, video and text chat engines, real-time tracking apps, online games and […]

November 6, 2017

MEAN, Node.js, Product Engineering

Node.js – The go to Technology for Product Companies and Enterprises

Product companies and enterprises both alike are in a race to develop products faster. A lot of companies are leveraging new-age digital technologies to improve time to market and shorten their release cycles. While some companies are automating delivery pipeline, some other are following Agile frameworks. For companies, succeeding at frontend isn’t the only goal. […]

July 21, 2017