- The importance of documentation for reproducibility
- The target audiences for different types of documentation
- How to use READMEs, code comments, and code style to document your workflow
Documenting Scientific Code and Data
EDS 214: Analytical Workflows and Scientific Reproducibility
Day 2 Afternoon | August 25th, 2026
This afternoon, you’ll learn:
LEGO Blueprints Activity
Step 1: Build (in trios)
LEGO Blueprints Activity
Step 2: Copy (in pairs)
LEGO Blueprints Activity
Step 3: Share (in groups)
LEGO Blueprints Activity
Step 4: Debrief (as a class)

Types of Documentation
README
A file that (succintly) describes the project and how it works.
Comments
Annotations within the code to explain why.
Code style
A consistent format for writing code, including naming conventions and structure.
README Documentation
Typical README contents
Code Comments
Flavors of code comments
Headers
Describe file’s purpose, author, and date created/modified
Inline
Explain complex logic, clarify assumptions, warn about edge cases
Function
Purpose, parameters, and return values of functions
Code Style
Readability → Comprehension → Reproducibility
Consistency is key! (Just like workflow folder organization)
Key considerations:
Tidyverse Style Guide
Documentation Recap
Why document?
Key documentation types: