Software Design: Tidy First?

Share this post

User's avatar
Software Design: Tidy First?
Boolean Parameter To Switches

Boolean Parameter To Switches

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

Share this post

User's avatar
Software Design: Tidy First?
Boolean Parameter To Switches
15
2
Share

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…

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

Share