Implementing Authentication in Next.js 14 with Auth.js: A Step-by-Step Guide
Authentication is a critical component of many web applications. In this guide, we'll walk through the process of implementing a robust authentication system in a Next.js 14 project using Auth.js, a powerful and flexible authentication library.
22 August 2024
Harness the Power of JavaScript's Array.prototype.reduce() Method
17 April 2023JavaScript's "Array.prototype.reduce()" method is an incredibly powerful and versatile tool for processing and manipulating array data.
Deep Cloning Objects in JavaScript using JSON.parse() and JSON.stringify()
12 April 2023In this blog post, we'll explore how to perform deep cloning of objects in JavaScript using the JSON.parse() and JSON.stringify() methods.
Mastering JavaScript Error Handling with Try-Catch Blocks for Web Developers
10 April 2023JavaScript is the foundation of modern web applications, making effective error handling crucial for web developers.
Design patterns in JavaScript
20 February 2023Web developers are always looking for new design patterns to use in their projects. These days, JavaScript is one of the most popular languages for web development, so it should come as no surprise that there are many different design patterns that can be used with this language.
How (and when) to use useMemo() and useCallback()
24 January 2023Many React developers struggle to understand the difference between useMemo() and useCallback() and when to use each of these hooks. In this blog post I'll try to explain this and make it a bit clearer for you.
When to use Promise.allSettled() and how is it different from Promise.all()?
02 January 2023Would you want to launch multiple Promises and wait until ALL of them have finished, but not lose resolved ones if some fail ?
New array methods coming in JavaScript
29 November 2022JavaScript stores objects and arrays in heap storage. That means the memory assigned for a specific array / object is dynamic and once the array has been created , any updates in the future will update the original one. And we don't always want this.
User Defined Type Guards in TypeScript
13 November 2022A Type Guard is a technique used to test if a value is of a specific type.
GitHub repositories that will help you become a better JavaScript developer
06 November 2022A list of GitHub repositories that will help you become a better developer, using JavaScript
Exhaustive checking in TypeScript using 'never' type
30 October 2022Type 'never' helps you with exhaustive checking in TypeScript...
How I learned Javascript for free
23 October 2022Many friends are asking me how I started my coding career 7 years ago...