Make mistakes; It's fine

It's alright to make mistakes. Everyone does. But it's very important to learn from them and change your approach on how you solve problems.

Programmatically, writing Unit Tests is a must. It helps you prevent overlooking certain edge cases and sometimes the obvious like nullity.