Software Design: Tidy First?

Boolean Parameter To Switches

Kent Beck's avatar
Kent Beck
Jul 22, 2024
∙ Paid

I think this is the first refactoring I’ve drafted that focuses on API evolution. I’m curious to see how many more I collect. Feel free to let me know about your favorites. I’m also wondering how useful this distinction will be.

Pattern

You see an API function that takes a single boolean parameter.

Forward

Replace the API function with 2 functions, one repr…

User's avatar

Continue reading this post for free, courtesy of Kent Beck.

Or purchase a paid subscription.
© 2026 Kent Beck · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture