A Simple Custom Hook in React.jsLet’s try a simple custom hook that can be used to handle form values. import { useState } from 'react'; const useFormValues = (initialFormValues) => { const [formValues, setFormValues] = useState(initialFormValues); const setFormValueByKey = (...Aug 15, 2025·1 min read
Declarative Programming in React.jsWhat is Declarative Programming Declarative programming is a paradigm where you focus on what the program should accomplish rather than how it should do it. Let’s start with a simple piece of code to double the numbers of an array. The below code sho...Apr 1, 2025·2 min read
Typescript Generics Made EasyProblem with ‘any’ function identity(arg: any): any { return arg; } function identity(arg: any) { return arg; } const result = identity(1); Above examples of an identity function are essentially the same. With or without explicit return, t...Mar 22, 2025·3 min read
Step into Redux with Ease: Building a Shopping CartFirstly, install the dependencies: npm i @reduxjs/toolkit react-redux Now we can setup redux store by creating a store.ts under a redux/store directory: // src/redux/store/store.ts import { configureStore } from '@reduxjs/toolkit'; import cartSlice ...Jan 12, 2025·3 min read
Nestjs: Programming Paradigm, IoC, DI and moreI didn't plan to publish this; it was initially for my own reference. This blog complements the official Nestjs documentation. Use Cases Standalone Applications These applications don't handle network traffic like HTTP or WebSocket connections but ...Aug 31, 2024·6 min read
Build and Dockerize A Simple Chat AppGetting Started with Socket.io and DockerJun 24, 2024·2 min read
Coditas Interview Experience | Off-Campus 2023Introduction I had the opportunity to participate in Job Expo 2023 organized at Ajeenkya D Y Patil University in collaboration with Talenlio. There were a lot of companies to apply for, out of which I was shortlisted for Accenture, Coditas and Equip9...Apr 30, 2024·3 min read