How do we turn an analysis into a reusable workflow?
Pipes make the sequence of transformations readable.
Use a function when the same logic appears more than once.
Test a function on a tiny dataset where you know the answer.
Generated refactors must preserve behavior. Refactoring is not improvement unless tests still pass.
MATH 346