Don’t forget you’re writing code for other people to read. This is the single most important thing you can learn as a programmer. “Does it run?” is the minimum requirement for a good program. After it runs, spend the time needed to clean it up so it’s presentable and well-factored.
Even if you are coding by yourself, future you will thank you.
Coding, like any other form of writing, has an audience. Consider that audience when you write. Everything else about being a great programmer flows from this one simple idea.