Storing Uploaded Files and Serving Them in ExpressIn the world of web development, handling file uploads—from profile pictures to project documents—is a cornerstone of user interaction. However, managing these files in an Express.js environment requiApr 30 · 3 min readstoringuploadedfilesandservingtheminexpresssagaraman.hashnode.dev
Sessions vs. JWT vs. Cookies: Understanding Authentication ApproachesWhen building a web application, one of the most critical decisions is how to "remember" a user after they log in. Since HTTP is a stateless protocol, each request is independent. To maintain a loggedApr 30 · 4 min readsessionsvsjwtvscookiessagaraman.hashnode.dev
Array Methods You Must KnowAs a JavaScript developer, arrays are your constant companions. Whether you are managing lists of users, processing data from an API, or tracking items in a shopping cart, understanding how to manipulApr 29 · 6 min readarraymethodsyoumustknowsagaraman.hashnode.dev
Async Code in Node.js: From Callback Hell to Promise ParadiseAsynchronous programming is the beating heart of Node.js. If you can’t handle async flow, your application will crawl to a halt, or worse, crash with a stack trace that is impossible to debug. HistoriApr 29 · 6 min readasyncinnodesagaraman.hashnode.dev
JavaScript Modules: Import and Export ExplainedAs your JavaScript applications grow, managing code in a single file becomes messy and hard to maintain. That’s where modules come in. Modules allow you to split your code into smaller, reusable pieceMar 26 · 3 min readavascriptmodulessagaraman.hashnode.dev