The Permission Slip Your Team Needs
February 05, 2026
Hello there! đź‘‹
Ever watched a developer stare at code they’re afraid to touch?
“It works. I don’t know why it works. But if I change it, something might break.”
That fear is expensive. It’s why codebases rot. Why “quick fixes” pile up. Why refactoring gets pushed to “someday” (which never comes).
The antidote? Automated tests.
Not tests as bureaucracy. Tests as permission. Permission to change code confidently, knowing you’ll find out immediately if something breaks.
And here’s where it gets interesting in the AI era.
AI can generate code in seconds. But how do you know it actually works? How do you know it handles edge cases? How do you know it won’t break something else?
You ask AI to write the test first.
We call it Test-Driven Development (TDD). Ask AI to write the test first. Watch it fail. Then — and here’s the magic — you can ask AI to make it pass.
The test becomes your specification. It tells the AI exactly what “done” looks like. No ambiguity. No “well, I meant this but you built that.”
The workflow looks like this:
- Ask AI to write a failing test that describes the behaviour you want
- Ask AI to write code that passes the test
- Run the test — does it pass?
- Refactor if needed (you have a safety net now)
- Repeat
This flips the script. Instead of reviewing AI code and hoping it works, you’re validating AI code against your spec. The test is your source of truth.
The side effects are wild:
- Tests become documentation. New developers read them to understand what the code does — even AI-generated code.
- Refactoring becomes safe. Change the implementation, run the tests, know instantly if you broke something.
- Deployments become boring. (Boring is good. Boring means no surprises.)
Teams practicing TDD report 50% fewer bugs reaching production. Not because they’re more careful. Because the tests catch mistakes before customers do — whether those mistakes came from humans or AI.
To go fast, you have to go well. Tests are how you know you’re going well.
Tomorrow: how to wire all this together so every commit gets validated automatically.
Yours, Ed
Want to hear more from me?
Signup to my newsletter!
Journeys of an Indie Rust Game Developer Newsletter
A free newsletter where I share my journey through the world of indie game creation.
Written by Edgardo Carreras.

