← All episodes

The validation you do not need to write #Shorts

September 18, 2026
The validation you do not need to write #Shorts Watch on YouTube

What if the best validation were one you never have to write?

What if the best validation were one you never have to write?

Defensive design is not about filling code with conditionals. It is about preventing nonsensical data from ever being created.

Think of a monetary amount in banking. If it can be any number, every screen and every service must remember that it has to be positive, use a valid currency, and follow rounding rules. An open door to error.

The alternative is to create a type such as ImportePositivo right at the source: if the data does not meet the rule, it never even enters the system. After that, the rest of the code works with a guarantee, not a suspicion.

Artificial intelligence can generate many checks, but it does not decide which states should be impossible. That remains a human design decision.

Full episode: https://youtu.be/cjl4ISOMy_E

🤖 AI-generated content: the script, voices, and images for this episode were produced with artificial intelligence tools.

#Shorts

Enjoyed the episode? Buy me a coffee ☕