Plan before writing code. If you want to create a high-quality content you need to think and do research. Don’t start coding right away without preliminary preparation. Think. Research. Plan. Write. Validate. Modify.
Don’t plan too much. There is no perfect plan when it comes to programming. You should be flexible, don’t waste your time with too much planning. Think and adapt to changes while writing code. Remember about a happy medium!
Code quality is above all! Always put readability in the first place. “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”
Don’t be afraid to rethink the problem. Quitting is fine when it comes to programming. No matter how much time you’ve spent investigating the solution, as soon as you understand that it won’t work quit it and rethink the problem.
Google! Always! Save your time, google it first.
Use Encapsulation. It is always useful, not using encapsulation often leads to harder-to-maintain systems.
Use the right data structure. Memorizing the strengths and weaknesses of the various data structures that you can use in your language will certainly make you a better developer.
Avoid writing comments when you can. Most comments can be replaced with better-named elements in your code.
Treat errors right. Errors are signs of progress. Treat them as helpers.
Don’t forget to take breaks. It’s better to relax sometime and get back to code with a fresh mind.