Niraj Chauhan

Niraj Chauhan

#father#husband#SoftwareCraftsman#foodie#gamer#onepiece#naruto

🚦 Avoid using enums in Typescript

Stop!!!

If you are coming to the typescript world from Java or from any other typesafe languages, then often your choice might be Enums for structuring something like loglevels, status, etc. Read More »

typescriptenumsunionsobjects

Domain Driven Design

Domain Driven Design

Domain Driven Design, is an approach to designing a software system by getting direct inputs from the domain experts and modeling the software accordingly. These domain experts can be the product owners or someone who is close to the product and understands the need of the market/end-users Read More »

domain-driven-designsystem-designarchitecture

My WFH desk setup

My Desk Setup

Since the pandemic began, most of us started working from home. Some people like it and some people miss their offices. But for me, the most amazing part of WFH is the desk setup. Have always seen YouTubers having this but I never got this opportunity until now. Read More »

wfhdeskgamingworkstation

NestJS + TypeORM + Postgres InMemory DB E2E testing

Code in Javascript

Testing is one of the most important and a major part of any application development, NestJS by default uses Jest & Supertest for making unit tests & end-to-end testing jobs easier. Read More »

end-to-endtestingtypescriptnodejsjavascriptnestjstypeormpostgres

Who is a Tech lead?

Team

Generally, every company will have roles for understanding seniority in the team, these roles can start from Junior Developer to all the way till Principal/Senior Developer. The term might vary from company to company but the idea is the same. The team will be composed of a set of developers with different expertise & experience. And it’s very important to have a SPOC(Single point of contact) for the engineering team to function. These anchor roles are generally called Tech Leads. Read More »

techleadleadershipagileteam

One piece 23rd anniversary

Luffy figurine

One piece is officially 23 years old now and I thought of creating a small CSS card of Luffy. Read More »

one pieceluffycsshtml

CSS: What's the difference between px, em & rem?

Most of us grew up using px CSS unit. This code should be familiar to you width: 100px;. But in the past few years, I saw other units getting added to the CSS specs. So let’s understand each of them. Read More »

cssrempxemunitshtml

Difference between Map & Flatmap | RXJava

RXJava can be very intimidating at first go. Reactive Extensions - RX is all about data streams & handling them and three important pillars for it are Observables, Operators & Schedulers. Read More »

RxJavajavastreamsjava8reactive programming

Reactive programming with RXJava

There is a huge buzz in the market for “Reactive Programming”, but the very first question comes in our mid is what is reactive programming? Why we need reactive programming? What is RX? Read More »

reactive programmingrxjava

How to write clean code?

A project is much easier to develop and maintain if the codebase is clean, which every developer should strive for. Writing clean code is not rocket science, in fact, it’s quite simple. Read More »

clean codejavajavascriptccleancodecleancodingcodingpractices

Java Vert.x MongoDB Client with Guice

Vert.x is an event-driven non-blocking library. It’s not a framework, so you get power to write code in your way. Vert.x is similar to NodeJS. It helps you to achieve concurrency with minimal hardware. Read More »

javavertxmongomongodbjava 8guice

Never buy anything from Snapdeal

Today I am going to share my journey on buying a product from Snapdeal. Read More »

snapdealflipkartamazonecommerceonlinebuyingfreecharge

Javascript Naming Conventions

Many times we face situations in projects for naming our files, variables or classes. Here is the convention I am sharing which I follow in my projects of Javascript. Read More »

javascriptreactnodejsnamingconventions

[] == [] is false, why? | JavaScript

I love javascript and its mystery, if you had to compare a set of two identical arrays the first thing in your mind would come is to compare using == operator. But in javascript the result will be different. Read More »

javascriptarraycomparison

Stop wordpress asking FTP details

If you are on linux system and fed up with Wordpress asking FTP details on every install/update of plugin/theme?? Read More »

wordpressphp

Get your website visitors device battery status

Recently I added a functionality in one my clients website to notify user about battery status if they are running low on it. Read More »

javascriptbattery

Javascript Mixin

In simple words reusing object between different classes. You can also take it as an Interface with implemented methods. Read More »

javascriptmixin

Ubuntu convert images to pdf

Add your multiple images into a single pdf by following command #pdf #ubuntu Read More »

pdfubuntu

JQuery Treeview List

JQuery Treeview List - Creates a nice expanding and collapsing tree view control using jQuery. Read More »

javascriptjquerytreeviewlist

MySQL get size of database

Read More »

mysqldatabasesize