Posts

Showing posts from April 3, 2025

The Story of Vishnu’s Ten Avatars – Dashavatara

The Story of Vishnu’s Ten Avatars – Dashavatara Long ago, when the universe was in turmoil and evil forces threatened to overpower righteousness, Lord Vishnu, the preserver of the cosmos, took different forms to restore balance. These ten divine incarnations, known as the  Dashavatara , appeared in different ages to save the world from destruction. 1. Matsya – The Great Fish and the Flood Once, a wise king named  Manu  was performing prayers near a river when a tiny fish swam into his hands, pleading for protection. Moved by its request, Manu placed the fish in a pot, but it kept growing larger and larger. Eventually, he realized it was none other than Lord Vishnu! The great fish warned Manu of an impending flood that would destroy everything. With Vishnu’s guidance, Manu built a massive boat and saved the sacred scriptures and all living beings, ensuring life continued after the deluge. 2. Kurma – The Mighty Tortoise During a time when gods and demons fought fo...

Advanced RxJS Patterns in Angular

Advanced RxJS Patterns in Angular RxJS is a powerful tool for handling  reactive programming  in Angular applications. Beyond basic observables, RxJS provides advanced patterns that  optimize performance, enhance user experience, and simplify complex workflows . In this guide, we’ll cover: Implementing Infinite Scrolling with RxJS Optimizing Performance with shareReplay Handling User Authentication Streams   1. Implementing Infinite Scrolling with RxJS Infinite scrolling is a common UI pattern where more data loads automatically as the user scrolls. Instead of making multiple API requests unnecessarily, we can use  RxJS with Intersection Observer  for an optimized experience. Step 1: Set Up a Service for API Calls import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs';   @Injectable({   providedIn: 'root' }) export cla...