What are the greatest programming tips and tricks you have learned on your own by years of coding? ****
For me, These are the most important tips I can really think of.
1) Keep it simple.
Spend a while planning ahead to save countless hours of frustration, headaches and failure.
2) TEST in every sub-problem your code solves.
I think this tip is for non professional coders such as myself, because when you move on to the next sub-problem you save your self the time of rereading what you have checked before (you check the last part of code to detect the bug in your code). Trust me this doesn't take much time just 50 seconds after each sub-problem.
3) Readability is more important than most believe.
When you learn to write simple readable code, you can code faster. The bugs will not occur as a messy code and if a bug occurs it will be faster to detect it and fix it.
Please share your experience, and correct me if I am wrong!