Here is another short-list with some on coding.
#1 You should enjoy writing code
If not, it’s obvious on the final result. OK sometimes it can be time consuming and frustrating but that’s the fun isn’t it? Your source code and final result tell the truth every time.
#2 Keep it simple
I know that you may want to show the cool effect or graphic you just made, but does it fit?
Example: In a hospital website, it is likely that the flying dragon effects won’t fit.
#3 Look from distance and polish
For me, this was hard to learn. Every time you are done writing, take a break and then jump in again to polish your code and improve small bits. This can make the difference, when you read your code a year after.
At some point you will have to search for an answer on how something is done. The first result (even a working one) is not the best. Look for a clean solution that you fully understand. If you think that your solution will be a couple of lines, and you come across a 50-line solution, then look in another place (90% of times proved right).
5#Your place, Your time
Programming is an art. If you feel that early morning coding is not for you then it is not. Know your best hours and work then. For example, I am a late night writer, my peak is around 2:00 in the night. Of course I do write code in the morning, but I never lose my peak hours for some sleep.
Hope I helped