Writing
Engineering trade-offs I've worked through, written up.
TanStack Query vs React Context: Choosing the Right State Management Strategy
State management is one of those things that seems simple when we first start working with React. We create a state variable using useState, pass some props to child components and everything works fine. But as the appli
Read articleAuthentication vs Authorization in Backend Development: Understanding RBAC with Hono and TypeScript…
Authentication vs Authorization in Backend Development: Understanding RBAC with Hono and TypeScript vs Authorization in Backend Development When building a backend application, security is one of the things we cannot ign
Read article
tRPC vs REST — A Practical Comparison for Modern Full-Stack Apps
Introduction I started with REST like most developers. You define endpoints, send requests, get responses — simple, predictable, and everywhere. But once I started building full-stack apps with TypeScript, I came across
Read article
Next.js Routing Explained: Pages Router vs App Router
When I first started learning Next.js, I found the Pages Router much easier to understand and work with. It felt simple to create pages, handle routes, and see instant results. But when I explored the new App Router, thi
Read article
React Best Practices I Wish I Knew Earlier
When I started working with React, I focused on making things work — not necessarily making them clean or scalable. Over time, I learned some best practices that make my code more readable, maintainable, and performant.
Read article
Trend Hive — A Full-Stack MERN E-Commerce App with PayPal (Features, Code & Lessons Learned)
In this post, I’ll share the journey of building my e-commerce web app, Trend Hive — a fully functional online store developed with the MERN stack: MongoDB, Express.js, Node.js, and Next.js with TypeScript. The app inclu
Read article