Reusable code and documentation

How analysis code is made to last.

1What it covers

How analysis code is made to last. The topic covers functions in place of copied code, clear names, settings kept apart from logic, simple tests on the main calculations, version control, a short note on how to run the work, and the handover to a colleague. It starts with a script written once and ends with code that a colleague can rerun and trust.

2Why it matters

Copied code multiplies errors. Code that only its author can run is a risk to the team. A short note on how to run the work saves hours when someone else must take over.

3The skill it belongs to

4Roles that use it

Updated 5 Nov 2026