Software Design: Tidy First?

Share this post

User's avatar
Software Design: Tidy First?
Tidying: Extract Helper

Tidying: Extract Helper

Kent Beck's avatar
Kent Beck
Mar 01, 2022
∙ Paid
17

Share this post

User's avatar
Software Design: Tidy First?
Tidying: Extract Helper
9
Share

You see a block of code inside a routine that has an obvious purpose & limited interaction with the rest of the code in the routine. Extract it as a helper routine. Name the routine after the purpose (not how the routine works).

The refactoring-aware among you will recognize "Extract Method" in this tidying.

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