Front End Development, MEAN, React.js

Context API as State Management in React Applications

Let’s first start with what state management actually is? State management refers to the methods and techniques used to handle, organize, and share data within a React application. It involves the systematic management and manipulation of data, ensuring seamless integration and synchronization across various components. State management is a critical aspect of building robust and […]

September 25, 2023

MEAN, Node.js

Amazon DynamoDB: A Scalable NoSQL Database

In continuously increasing data, organizations struggle to store, retrieve, and manage data efficiently. This is where Amazon DynamoDB plays a crucial role and stands out as a powerful solution. In this blog, we’ll explore Amazon DynamoDB, its features, and hands-on basic CRUD operation. What is DynamoDB? DynamoDB is a fully managed NoSQL database provided by […]

September 3, 2023

Front End Development, MEAN, Node.js

Future of MERN Stack?

Introduction MERN stack technology is a popular technology stack used by many developers worldwide. MERN is an acronym for four powerful technologies, including MongoDB, ExpressJS, ReactJS, and NodeJS. This technology stack is known for its ability to build fast and robust web applications. It is no surprise that the MERN stack is gaining popularity among […]

August 24, 2023

MEAN, Node.js, Technology

Simple way to handle monetary data in MongoDB in a NestJs application

While building my backend NestJs application, I wanted to store some financial data. The first question I ran into was what schema Type should be for storing data where I want to maintain the data precision. Decimal128 came out to be the prescribed official candidate to store the financial data. Here’s my initial schema implementation: […]

August 19, 2023

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