Category

Quick Tips & Snippets

Bite-sized reads focusing on specific code solutions.

Filter by Tags

TypeScript Utility Types You Should Know
Feb 10, 20263 min read
TypeScript
Cheatsheet

TypeScript Utility Types You Should Know

Five essential built-in generic utility types in TypeScript that will save you hundreds of lines of code.

Generate Dynamic OG Images in Next.js
Feb 08, 20262 min read
Next.js
OG Images
SEO

Generate Dynamic OG Images in Next.js

Generate dynamic Open Graph images in Next.js using the ImageResponse API with custom fonts, gradients, and data-driven content for social sharing.

GitHub Actions Reusable Workflows: Stop Repeating Yourself
Jan 22, 20263 min read
GitHub Actions
CI/CD
DevOps

GitHub Actions Reusable Workflows: Stop Repeating Yourself

Create reusable GitHub Actions workflows with inputs, secrets, and outputs to eliminate YAML duplication across repositories and teams efficiently.

Node.js Streams for Processing Large Files
Jan 05, 20262 min read
Node.js
Streams
Performance

Node.js Streams for Processing Large Files

Process large files efficiently in Node.js using readable, writable, and transform streams to avoid memory issues and handle data chunk by chunk.

React Native Expo Router: Quick Setup Guide
Dec 18, 20252 min read
React Native
Expo
Router

React Native Expo Router: Quick Setup Guide

Set up file-based routing in React Native with Expo Router, including tab navigation, stack navigation, deep linking, and typed route params.

Next.js Server Actions for Form Handling
Nov 15, 20255 min read
Next.js
Server Actions
Forms

Next.js Server Actions for Form Handling

Handle forms in Next.js with Server Actions using useActionState, progressive enhancement, validation with Zod, and proper error handling.

Prisma vs Drizzle: A Quick Comparison for 2026
Oct 28, 20256 min read
Prisma
Drizzle
ORM

Prisma vs Drizzle: A Quick Comparison for 2026

Compare Prisma and Drizzle ORM across performance, type safety, bundle size, and developer experience to choose the right ORM for your project.

React Suspense and Error Boundaries: A Quick Guide
Oct 12, 20254 min read
React
Suspense
Error Handling

React Suspense and Error Boundaries: A Quick Guide

Combine React Suspense with Error Boundaries to handle loading states and errors declaratively, replacing manual isLoading and isError patterns.

TypeScript Discriminated Unions for Type-Safe State
Sep 25, 20251 min read
TypeScript
Unions
Type Safety

TypeScript Discriminated Unions for Type-Safe State

Model complex application state with TypeScript discriminated unions to eliminate impossible states and get exhaustive type checking for free.

Next.js Image Optimization Tips You Should Know
Sep 08, 20254 min read
Next.js
Images
Performance

Next.js Image Optimization Tips You Should Know

Optimize images in Next.js with the Image component, blur placeholders, responsive sizes, and remote image configuration for faster page loads.

Git Worktrees: Work on Multiple Branches Simultaneously
Aug 05, 20251 min read
Git
Workflow
DevOps

Git Worktrees: Work on Multiple Branches Simultaneously

Use git worktrees to check out multiple branches in separate directories without stashing or committing, enabling true parallel development.

Tailwind CSS v4 Migration: What Changed and How to Upgrade
Jul 20, 20255 min read
Tailwind CSS
Migration
CSS

Tailwind CSS v4 Migration: What Changed and How to Upgrade

Step-by-step guide to migrating from Tailwind CSS v3 to v4, covering the new CSS-first config, removed utilities, and breaking changes to fix.

Zod Schema Validation Patterns for Real-World Apps
Jul 02, 20254 min read
Zod
Validation
TypeScript

Zod Schema Validation Patterns for Real-World Apps

Explore advanced Zod validation patterns including discriminated unions, transforms, refinements, and composable schemas for production applications.

PostgreSQL Indexing Strategies That Actually Matter
May 28, 20255 min read
PostgreSQL
Database
Performance

PostgreSQL Indexing Strategies That Actually Matter

Learn which PostgreSQL index types to use and when, from B-tree and GIN to partial and covering indexes, with real query performance benchmarks.

Docker Multi-Stage Builds for Node.js Apps
May 10, 20251 min read
Docker
Node.js
DevOps

Docker Multi-Stage Builds for Node.js Apps

Reduce your Node.js Docker image size by 80% using multi-stage builds that separate build dependencies from production runtime artifacts.

React useOptimistic: Instant UI Updates Done Right
Apr 22, 20252 min read
React
Hooks
Server Actions

React useOptimistic: Instant UI Updates Done Right

Learn how to use React's useOptimistic hook with Server Actions to show instant UI feedback while mutations complete in the background.

TypeScript satisfies Operator: When and Why to Use It
Apr 05, 20254 min read
TypeScript
Type Safety
Tips

TypeScript satisfies Operator: When and Why to Use It

Understand the TypeScript satisfies operator with practical examples showing how it validates types without widening, keeping your code type-safe.

Master Next.js Metadata API for Better SEO
Mar 18, 20254 min read
Next.js
SEO
Metadata

Master Next.js Metadata API for Better SEO

Learn how to use the Next.js Metadata API to boost SEO with dynamic titles, Open Graph tags, and structured data in the App Router.