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
CarrerasDev Newsletter
A free email newsletter on how to create high-performing development teams.
