AI-Written Code and Tests: The Shared Blind Spots Trap

You ask your AI coding agent to implement a FastAPI endpoint, then ask it to write the unit tests. pytest turns green. pytest --cov reports 100% line coverage. The diff looks clean, the assertions are readable, and the PR is ready to merge. Three days later, a client sends a slightly malformed payload and your endpoint returns a 500 error or silently applies a negative discount. This is not a freak incident. With AI-written tests generated in the same session as the implementation, both artifacts share the exact same implicit assumptions. The tests do not prove that the code survives reality: they only prove that the code matches what the model had in mind when it wrote it. ...

November 28, 2026 · 5 min · Anthony
AI-Written Code and Tests: The Shared Blind Spots Trap

AI doesn't replace learning to code

We keep hearing the same promise lately: “No need to know how to code anymore — AI handles it.” And honestly, it’s tempting. You open an agent, describe what you want, and within seconds, code appears. Magic. Except not really. Agentic development — but for whom? AI-assisted development is a genuine revolution. I’m not going to pretend otherwise. For a senior or intermediate developer who has already wrestled with complex problems, debugged twisted algorithms, and shipped systems to production, productivity reaches unprecedented heights. You delegate repetitive tasks, prototype in hours what used to take days, and stay in your high-value zone: architecture, critical decisions, validation. ...

May 4, 2026 · 4 min · Anthony
AI doesn't replace learning to code

Newsletter

Get new articles delivered straight to your inbox.