Software Design: Tidy First?

Share this post

User's avatar
Software Design: Tidy First?
Explaining Constant

Explaining Constant

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

Share this post

User's avatar
Software Design: Tidy First?
Explaining Constant
3
Share

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.

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