CORS - Cross Origin Resource SharingCORS stands for Cross-Origin Resource Sharing. It is a security feature implemented by web browsers that controls how web pages in one domain can request and interact with resources hosted on another domain. Web browsers have a same-origin policy, wh...Dec 5, 2023·1 min read
Singleton Design PatternThe singleton pattern is a simple design trick. Imagine you have a special class, and you only want one copy of it. For example, think about having just one toolbox that lots of workers share, instead of giving each worker their own toolbox. This is ...Aug 27, 2023·2 min read
Restrict Object Mutation In JavaScriptFlexibility Of JavaScript Objects As a web developer, I've always been fascinated by the flexibility of JavaScript objects. Objects in JavaScript are like containers that can hold any type of data, including strings, numbers, and even other objects. ...Aug 13, 2023·4 min read
Debouncing And ThrottlingIntroduction Debouncing and throttling are techniques that help optimize performance in JavaScript applications. They are used to control the frequency with which certain events are triggered. Debouncing Debouncing in JavaScript is a technique used t...Aug 1, 2023·3 min read
Working With GitImportant Commands git init: Initialize a git repository, git status: Check the status of any directory whether it's a git repo or not, git add file_name: Add the given file in the staging area, git add -A: Add all files changed files into the st...Jul 17, 2023·2 min read
Async And Defer ScriptsIntroduction Async and Defer are boolean attributes used with script tags in HTML to load scripts efficiently. Whenever a browser loads a webpage two significant things happen behind the scenes: HTML Parsing Script Loading Further, two things in ...Mar 20, 2023·2 min read
Functional Programming: Currying And Partial ApplicationWhat is Currying? Currying is a technique in functional programming to transform a function with multiple arguments into a series of function calls with each having only a single argument. Basically, it converts a function call like this f(a, b) to t...Mar 10, 2023·3 min read