22  Well commented code

Process Data documentation Methods and technology

A script is reusable only if the decisions are written next to the code. Why a row was dropped, which unit was converted, and which name was corrected should be in the script, not only in someone’s memory.

Those comments, together with the data dictionary, are how the next person checks the work. The documentation of the whole workflow is in Reproducible workflows, version control.