Replace Magic Number with Symbolic ConstantThe book has now been published and the content of this chapter has likely changed substanstially.
Create a constant, name it after the meaning, ad replace the number with it.
Magic numbers are one of the oldest ills in computing. They are numbers with special values that usually are not obvious. Magic numbers are really nasty when you need to reference the same logical number in more than one place.
Further ReadingFrom [Ref].
Copyright © 2003-2008 Gerard Meszaros all rights reserved