Coding Principle: Do the Obvious Thing First
It’s tempting when you’re writing code to try and write it “the right way” from the start. This is a huge waste of time!
You’re so much better off getting the ideas you have in your mind out and into a more concrete form, like a text editor. Doing this frees your mind from having to hold on to the entire idea. When you see the idea expressed, it is far easier to see what can be improved. Then, you can focus on cleaning it up “the right way” piece by piece.
Build momentum. Get the code working first, then improve it.