Top 10 Scripting Tips
Helpful guidance for those who script and may not be aware of good programming practices
10 Things to Do as a Scripter, novice or well-seasoned
(DRAFT! DRAFT! DRAFT! And not in any order yet. Let's crowdsource and then slim down to best 10!)
- Write code in small, re-runnable, re-usable chunks
- Try to use workflow techniques by chaining together your small pieces of code
- If data collection / analysis is prolonged, write out data in small, easy-to-digest chunks
- Use Version Control! Really! Use it!
- Comment your code
- Use sound programming practices around variable & function naming
- Pay attention to and read carefully any error messages
- Use good data management & reproducibility practices from the start
- x
- y
- z
- y
- x
- w
- v
- u