Intermediate guides.
For people who already ship. Claude Code workflows, deploys without downtime, Postgres in production, and the operational details that start to matter.
186 posts · page 2 of 8
Claude Code With Local Models (Ollama, LM Studio): How It Works and the Catch
You can point Claude Code at a local open-weight model through an Anthropic-compatible endpoint such as Ollama's. How the setup works with ANTHROPIC_BASE_URL, what hardware and context you need, why tool calling and quality suffer, what Anthropic does and doesn't support, and when it's worth it.
Claude Code /goal: Keep Claude Working Until the Job Is Actually Done
/goal sets a completion condition and Claude keeps taking turns until a separate model confirms it's met — no prompting each step. How to write conditions the evaluator can verify, how evaluation and check-ins work, combining it with auto mode, running it headless, and when to use /loop or a Stop hook instead.
Claude Code Background Sessions and Agent View: Run Many Agents at Once
Agent view (claude agents) lets you dispatch Claude Code sessions that keep running in the background, peek at them, answer their questions and attach when needed. How to start background sessions with --bg and /bg, the attach/logs/stop commands, background shell jobs, worktrees, and the limits on usage and idle sessions.
Caddy vs Nginx vs Traefik: Which Reverse Proxy Should You Use?
Three popular reverse proxies, three philosophies: Nginx is the fast, flexible standard; Caddy gives you automatic HTTPS with a two-line config; Traefik configures itself from Docker labels. How they compare on HTTPS, configuration, Docker and Kubernetes integration, performance and debugging — with the same site configured in each.
Biome vs ESLint + Prettier: Should You Switch?
Biome is a single Rust-based tool that formats and lints JavaScript, TypeScript, JSON and CSS — much faster than ESLint plus Prettier, with one config file. How they compare on speed, rule coverage, plugins, type-aware linting and framework support, how to migrate, and when to stay with ESLint.
Claude Message Batches API: Half-Price Claude for Work That Can Wait
The Message Batches API runs large numbers of Claude requests asynchronously at 50% of the normal price — usually finishing within an hour. When to use it (classification, extraction, evals, backfills), limits (100,000 requests or 256 MB per batch, 24-hour expiry, 29-day results), a complete Python example, and how it stacks with prompt caching.
What Is Tailscale? A Private Network for Your Devices and Servers
Tailscale builds a private, encrypted network (a tailnet) between your laptops, phones and servers using WireGuard, with no ports to open. How it works, common uses — private SSH, reaching databases and admin tools, home labs — MagicDNS, ACLs, Funnel and Serve, and alternatives like Headscale and plain WireGuard.
What Is OpenTelemetry? Traces, Metrics and Logs Explained
OpenTelemetry is the open standard for collecting traces, metrics and logs from your app and sending them to any observability backend. The three signals, spans and context propagation, auto-instrumenting a Node.js app, the Collector, backends, LLM and agent tracing, and what a small team actually needs.
Vitest vs Jest: Which JavaScript Test Runner Should You Use?
Jest was the default JavaScript test runner for years; Vitest is the fast, Vite-native alternative with a Jest-compatible API. How they compare on speed, ESM and TypeScript support, config, mocking, browser mode and ecosystem, plus migrating from Jest to Vitest.
The Vercel AI SDK: Streaming Chat and Tool Calls in TypeScript
The AI SDK is a TypeScript toolkit for calling language models from any provider with one API, streaming responses to React with useChat, calling tools, and generating structured data. A working Next.js chat with Claude, tool calling with stopWhen, structured output, provider choice, and production concerns.
useMemo vs useCallback (and React.memo): When Memoization Helps
useMemo caches a computed value; useCallback caches a function; React.memo skips re-rendering a component whose props didn't change. When each actually helps, when it's wasted effort, the dependency array rules, and how the React Compiler now does most of this for you.
TypeScript Generics Explained (Without the Headache)
Generics let a function, type or component work with many types while keeping type safety — like 'a list of T'. How <T> works, inference, constraints with extends, keyof, default type parameters, generic React components and hooks, utility types like Partial and Pick, and when generics are overkill.
type vs interface in TypeScript: Which Should You Use?
type aliases and interfaces both describe object shapes, and mostly behave the same. The real differences — unions and other non-object types, declaration merging, extends vs intersections, error messages — and a simple, consistent rule for choosing in your codebase.
tRPC vs REST: End-to-End Type Safety or a Standard API?
tRPC lets a TypeScript front end call back-end functions with full type safety and no API schema to maintain; REST is the universal, language-agnostic standard. How they differ, a tRPC example, when tRPC shines (TypeScript monorepos), when REST wins (public APIs, mobile, other languages), and where Server Actions fit.
Postgres timestamp vs timestamptz: Which Should You Use?
timestamptz stores an absolute moment in time; timestamp stores a wall-clock reading with no zone. Why timestamptz is almost always right, what Postgres actually stores, how the session TimeZone changes what you see, AT TIME ZONE, date_trunc by local day, ORMs and drivers, and migrating.
How to Test Webhooks Locally: Stripe CLI, Tunnels, and Replays
Webhook providers can't reach localhost, so local testing needs a forwarder or a tunnel. How to use provider CLIs like stripe listen, general tunnels like ngrok and Cloudflare Tunnel, request-capture tools, and fixture replays in automated tests — plus the signature-verification gotchas.
Test-Driven Development With Claude Code
Tests first is the single best way to make an AI coding agent reliable: it gives Claude a pass/fail signal to iterate against. A red-green-refactor workflow for Claude Code, prompts that stop it cheating the tests, enforcing it with hooks and /goal, and where TDD with agents falls short.
TanStack Query vs useEffect for Data Fetching in React
Fetching in useEffect looks simple until you need loading states, errors, caching, race conditions, refetching and mutations. What TanStack Query handles for you, side-by-side code, mutations with invalidation, and when server components or plain useEffect are still the right choice.
Writing a systemd Service File for Your App (With Hardening)
A production-ready systemd unit for a Node.js or Python app, explained: Type, User, WorkingDirectory, EnvironmentFile, Restart and backoff, graceful stop, resource limits, logging, and the sandboxing options (ProtectSystem, NoNewPrivileges, PrivateTmp) that limit damage if the app is compromised.
Stripe Subscriptions Explained: Products, Prices, Webhooks and Access
How Stripe Billing models subscriptions — customers, products, prices, subscriptions and invoices — which webhooks to handle, what each subscription status means for access, trials, upgrades and proration, failed payments and dunning, and the Customer Portal.
Streaming LLM Responses to the Browser: SSE, Fetch Streams, and Gotchas
Streaming makes AI features feel fast: words appear as they're generated instead of after a ten-second wait. How to stream from the Claude API on your server, forward it to the browser, read it in React, and fix the proxies and timeouts that buffer or cut off streams.
SSRF Explained: When Your Server Fetches URLs for Attackers
Server-side request forgery tricks your server into making requests to places it shouldn't — internal services, cloud metadata endpoints, localhost admin panels. Where SSRF hides (URL previews, webhooks, imports, AI agents with fetch tools), why blocklists fail, and the defences that work.
SSH Hardening: Lock Down SSH on Your Server
A practical SSH hardening checklist: key-only authentication, no root login, AllowUsers, modern key types, sshd_config drop-ins, testing safely without locking yourself out, fail2ban, firewall rules or a private network like Tailscale, 2FA, and auditing who has access.
How to Secure a New VPS: The First 30 Minutes
A fresh server is scanned within minutes of going online. The essential hardening steps for a new Ubuntu VPS: updates, a non-root user, SSH keys only, firewall, automatic security patches, fail2ban, safe service binding, backups and monitoring — in order, with commands.