Blog

Long-form writing and practical notes from real product and teaching work.

Learn how to build a secure AI PR reviewer with Claude, JavaScript, GitHub Actions, Zod, and Octokit. This guide shows how to review GitHub Pull Request diffs safely, block prompt injection, validate LLM JSON output, and post automated review comments on PRs.

Refactor legacy JavaScript and Node.js code with OpenAI Codex using a safe workflow: map undocumented logic, lock behavior with tests, then modernize CommonJS, callbacks, and outdated patterns step by step. Learn a practical AI-assisted refactoring process that improves maintainability without risky full rewrites.

Benchmark Cloudflare Tunnel vs ngrok vs VS Code port forwarding with a repeatable test plan for HTTP latency, WebSocket stability, and auth overhead. Learn when to use each tool and lock in the fastest, safest localhost-sharing workflow for modern full-stack development.

Fix hidden request waterfalls in Next.js App Router to reduce TTFB and improve real-world performance. This step-by-step guide shows how to detect sequential fetches, use Promise.all, stream with Suspense, avoid nested layout awaits, and apply smart caching for faster production responses.