Zen of Coding
1. Keep it simple
The fewer moving parts, the less there is to go wrong.
2. Keep it intuitive
Use obvious names, avoid hard-coding variables, and use objects, functions, and loops to reduce code duplication (aiding clarity.)
3. Document accordingly
Make it clear what is happening and where such that anyone picking up the project can understand it! — chances are it will be you 6 months down the line!
(If you found this useful, please click the ‘clap’ button. And remember you can click it more than once! Maybe even 50 times?)