First of all, I think about the errors that can occur. Then I think about how I can eliminate these errors without destroying the meaning and functions of the code. If I notice any errors during or after programming, I will try to fix them. This is what I'm doing, how about you?