Software Design: Tidy First?

Explicit Parameters

Kent Beck's avatar
Kent Beck
Feb 16, 2022
∙ Paid
12
9
Share

So you're reading some code you want to change & you notice that some of the data it works on wasn't passed explicitly to the routine. How do you make the inputs clear?

Split the routine. The top part gathers the parameters and passes them explicitly to the second part.

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Kent Beck
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture