Zen of Coding

Three simple points on good coding practice


Photo by James Harrison on Unsplash

The Codex:

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?)



Daniel Ellis Research

Research Software Engineer specialising in High-Performance Computing and Data Visualisation. — PhD in Atmospheric Chemistry and Masters in Theoretical Physics.