Thoughts, tutorials, and insights on web development and technology
TypeScript is not just about typing objects and functions — its power lies in advanced type features like Generics, Keyof, Typeof, Conditional Types, Infer, and Mapped Types. Let’s break them down with examples.
Managing multiple databases locally can be painful — but with Docker Compose, you can spin up PostgreSQL, MySQL, and MongoDB easily, all inside isolated containers.
Zustand is a lightweight state management library for React. It is simpler than Redux but still powerful enough for global state, with no boilerplate and full TypeScript support.
TanStack Query (React Query) is a powerful library for managing server state in React. It handles caching, background updates, mutations, retries, pagination, optimistic updates, and more — so you don’t have to write endless `useEffect` hooks for fetching data.
TanStack Router is a fully type-safe, lightweight, and powerful router for React applications. Unlike traditional routers, it provides built-in support for search params, loaders, navigation, route definitions, and much more — all strongly typed.
Prisma is a modern ORM for Node.js and TypeScript that makes working with PostgreSQL type-safe, scalable, and developer-friendly. In this guide, we'll cover everything: schema design, migrations, CRUD operations, query builder, relations, and best practices.