Using your IDE to automatically create methods for you maybe a disaster waiting to happen.
July 28, 2011
Magic numbers
The other day a colleague asked me, what is a magic number? He had noticed that one of the things our Sonar was complaining about was Magic numbers. I got a great teaching moment and told him my view of Magic numbers.
Magic numbers are any numbers in the source code that just appears without any explanation.