My rule: I am a stupid person. I am often called upon to think, but I am not very good at it. If a block of code is so complicated that I have to think about it, then I’m gonna fuck something up.
I try and write code that’s so clear and simple that you can understand what it does without thinking about what it does. I usually fail.