Software Design: Tidy First?

Explaining Constant

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

So you're reading along and you see a number you don't recognize. Or you're reading along and you see a constant string repeated all over the code. You figure out what the constant means.

Create a symbolic constant. Replace uses of the literal constant with the symbol.

User's avatar

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

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