Software Design: Tidy First?

Explaining Variable

Kent Beck's avatar
Kent Beck
Feb 18, 2022
∙ Paid

Some expressions grow. Even if they start small they grow. And they grow & they grow (we'll talk about how this happens when we discuss preferential attachment). And then along you come with your reading glasses on & you try to understand what's happening.

When you understand a part of a big, hairy expression, extract the sub-expression into a variable named after the intention of the expression.

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