I stopped thinking APIs break because of “complex code”.

They break because of boring things you didn’t take seriously.

Here are 5 lessons from production:

1. Validate early or suffer later

I used to validate inside the logic.