Blog

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

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.