Your Website Works With a Mouse, But Fails With a KeyboardPicture a settings page. There's an Export control in the toolbar, a filter dropdown, and a Settings dialog. Everything works when you click. Now push your mouse aside and press Tab. The focus ring haOct 23 · 8 min readloknath-codes.hashnode.dev
How to Call an API with JavaScript fetch() and Handle Errors ProperlyMost fetch() tutorials only show the happy path. The bug that actually catches beginners is a different one: fetch() does not throw an error when a server responds with a 404 or 500. Your code just keOct 18 · 8 min readloknath-codes.hashnode.dev
Session-Based Authentication in Node.js and TypeScript with HttpOnly Cookies and CSRF ProtectionMost authentication tutorials end at "the user is logged in". That is the easy part. The hard part is everything around it: where the password actually goes, where the session lives, what happens whenOct 14 · 32 min readloknath-codes.hashnode.dev
Why Your Node.js API Is Slow in Production: 10 Mistakes That Pass Code ReviewSpot the bug in 10 seconds: const controller = new AbortController(); const timer = setTimeout(() => controller.abort(), 1000); const res = await fetch(url, { signal: controller.signal }); clearTimeoOct 12 · 23 min readloknath-codes.hashnode.dev
7 Node.js Built-in Features That Can Replace npm PackagesFewer dependencies, faster installs, and less third-party code to trust. Every package you install is also a package you have to update, audit and trust, along with everything that package depends on.Oct 11 · 9 min readloknath-codes.hashnode.dev