A workshop held over two days at the 2019 HWSA on good code etiquette and optimisation.
Session 1: Interactive lecture, intro to coding style and practices
Examples explored:
Readability
Structure
Documentation
Exception
DRY examples
Testing
Vectorize
Session 2: Hands on project work, applying skills to (intentionally) crappy code
In this part of the workshop we will look at an example code to reproduce HR diagrams using Gaia data.
Session 3: Revision and Benchmarking
When and What to Optimise
Timing Code Snippets
Profiling Code
Parallelising Code
Advanced Track