Start here
41 tutorials grouped by topic. Pick a topic, or see the full list by date.
Database
- Migrating from MongoDB to Postgres with Feature Flags
How CodeForge AI moved from MongoDB to Supabase Postgres one module at a time, using a backend flag, dual-backend repositories and an ID-remapping backfill.
- Database transactions and ACID properties explained
A practical guide to database transactions and ACID properties explained.
- MongoDB aggregation pipeline practical guide
Learn MongoDB aggregation pipelines with worked examples using $match, $group, $addFields and $sort, plus common mistakes to avoid.
- PostgreSQL indexing strategies for faster queries
A practical guide to PostgreSQL indexing strategies for faster queries.
- SQL JOINs Explained: INNER, LEFT, RIGHT, and FULL with Real Examples
Master SQL JOINs once and for all. Learn the difference between INNER, LEFT, RIGHT, and FULL OUTER JOINs with clear diagrams and practical examples.
Git
- How to Undo Mistakes in Git: reset, revert, restore and reflog
A practical guide to undoing Git mistakes safely: when to use restore, revert or reset, and how reflog can recover commits you thought you lost.
- Git worktrees: work on multiple branches without stashing
A practical guide to git worktrees: work on multiple branches without stashing.
- Git rebase vs merge: when to use each
Learn how git rebase and git merge differ, when to choose each one, and how to avoid rewriting history that other people depend on.
- Git Branching Strategies Explained: GitFlow, Trunk-Based, and GitHub Flow
Compare the most popular Git branching strategies — GitFlow, GitHub Flow, and trunk-based development — and learn which one fits your team's workflow.
Linux
- Writing Safer Bash Scripts: set -euo pipefail, Quoting and trap
Learn the habits that make Bash scripts fail loudly instead of silently: strict mode, quoting variables, argument checks and cleanup with trap.
- Linux file permissions and chmod explained with examples
A practical guide to linux file permissions and chmod explained with examples.
- Vim keybindings every developer should know
Learn the Vim keybindings that save the most time: navigation, editing, visual mode, registers and macros, with two worked examples.
- Linux cron jobs: scheduling tasks the right way
Learn cron syntax, environment variable pitfalls, logging and error handling, and when a systemd timer is a better choice for scheduled jobs.
Backend
- HTTP Caching Explained: Cache-Control, ETag and 304 Responses
How browser and CDN caching works: what max-age, no-cache and immutable mean, how ETag revalidation returns 304, and a sensible strategy for assets and APIs.
- Redis caching patterns for Node.js apps
Compare Redis caching patterns for Node.js, including cache-aside and read-through, with setup steps, code examples and common mistakes.
- WebSockets vs Server-Sent Events: pick the right one
A practical guide to WebSockets vs Server-Sent Events: pick the right one.
JavaScript
- Debounce vs Throttle in JavaScript: Differences and Implementations
Debouncing waits for events to stop; throttling limits how often a function runs. See both implemented in JavaScript and when to use each.
- Promise.all, allSettled, race and any: Which One to Use
Four JavaScript Promise combinators look similar but fail in different ways. Learn what each returns, when it rejects, and how to choose.
- Regular Expressions for Developers: JavaScript and Python
Learn the regex features you use daily: groups, named captures, lazy matching and lookbehind, with tested examples in both JavaScript and Python.
Next.js
- Log Search Engine and AI Crawlers in Next.js with proxy.ts and MongoDB
How this blog records Googlebot, the AdSense crawler and AI bots using the Next.js proxy file and MongoDB, without storing IP addresses or slowing pages down.
- Next.js Image component and image optimization in production
A practical guide to next.js Image component and image optimization in production.
- Next.js middleware: authentication and redirects
A comprehensive guide to Next.js middleware: authentication and redirects.
Python
- Python asyncio in Practice: gather, Timeouts, Semaphores and TaskGroup
Run tasks concurrently with asyncio: gather, timeouts, a semaphore to limit concurrency, error handling and structured concurrency with TaskGroup.
- Python dataclass vs NamedTuple vs TypedDict: Choosing a Data Container
Compare Python dataclasses, NamedTuple and TypedDict with runnable examples, so you can pick the right structure for records, configs and JSON.
- Python type hints and mypy for safer code
Add type hints to Python code and check them with mypy: basics, typing collections, protocols instead of inheritance, and common mistakes.
Security
- Verify Googlebot with Forward-Confirmed Reverse DNS in Node.js
A line-by-line look at the reverse DNS check used on this blog to tell real Googlebot traffic from spoofed user-agents, and the crawlers it cannot verify.
- A Signed-Cookie Admin Login in Next.js Without a Database, and Its Limits
How the admin panel on this blog authenticates one user with HMAC and timingSafeEqual, plus the real weaknesses of the design and how to fix them.
- API Authentication: JWT, OAuth 2.0, and API Keys Explained
Understand the three main API authentication methods — API keys, JWT, and OAuth 2.0 — when to use each, and how to implement them securely.
CSS
- CSS Grid vs Flexbox: When to Use Each
Flexbox lays out in one dimension and Grid in two. Learn the difference with side-by-side code, common layouts, and how to combine both.
- Tailwind CSS tips that save hours of styling
Practical Tailwind CSS v4 tips: theme variables, @apply, dynamic class name pitfalls, class-based dark mode, custom utilities and tidy class lists.
Developer Tools
- 15 VS Code Tips That Will Double Your Productivity
Power user tips for VS Code: multi-cursor editing, keyboard shortcuts, terminal integration, extensions, and debugging tricks that save hours every week.
- Browser DevTools: 12 Tricks Most Developers Don't Know
Level up your debugging with advanced Chrome DevTools techniques: console tricks, network throttling, CSS editing, performance profiling, and more.
DevOps
- Nginx configuration for Node.js production apps
Set up Nginx as a reverse proxy for a Node.js app, with SSL termination using Let's Encrypt, load balancing and caching, plus example configs.
- Kubernetes pods and deployments for beginners
Understand Kubernetes Pods and Deployments from scratch: how they relate, how to create, scale and update them, and mistakes beginners make.
Node.js
- Node.js worker threads for CPU-intensive tasks
Keep Node.js responsive during CPU-heavy work: move tasks to worker threads, share data efficiently and build a simple worker pool.
- Node.js streams for handling large files
Process large files in Node.js without loading them into memory, using readable, writable and transform streams, with common mistakes to avoid.
SEO
- What 90 Days of Crawler Logs Showed Me About Google, AI Bots and AdSense
Real numbers from 90 days of crawler logs: GoogleOther outnumbered Googlebot seven to one, and 268 AdSense crawler visits still ended in a rejection.
- How I Unpublished 37 Low-Value Articles with One Config File
After an AdSense low-value rejection, an audit of 73 articles led to taking 37 offline through one reversible file instead of deleting database rows.
Docker
- Docker multi-stage builds for smaller images
Shrink Docker images with multi-stage builds: separate build and runtime stages, use smaller base images, and avoid common mistakes.
React
- React Context API vs Redux: when you actually need state management
A practical guide to react Context API vs Redux: when you actually need state management.
TypeScript
- Type-safe API calls with TypeScript and Zod
Validate API responses at runtime with Zod and infer TypeScript types from the same schema, so fetched data is both checked and typed.