|
|
|
|
|
by sheepmullet
3077 days ago
|
|
> The negative drawbacks of extracting constants is typically minimal > ASCII_A It comes down to naming and purpose. The example, ASCII_A, is terrible because it doesn't describe the purpose with its name. What will end up happening in any large codebase is ASCII_A will get reused in dozens of different places for dozens of different reasons. If it was named minValidLetterForAlgorithmX it would convey intent and its more likely to be used correctly. |
|