I mostly agree with this article. Nitpicking a point, however, I don't consider a constant to be a "magic number". If you've given it a clear variable name, such as "defaultRetries" then it is no longer "magic".
back
1 comments
I believe you're actually agreeing with the author here. I took his comment to mean "Don't have unnamed numbers/strings/etc., refactor any 'magic numbers' into constants, that way they will be in one place with a sensible name."