News for hackers. Stuff that matters.
Re:What is a magic number, and why is it bad? by dsego on Wednesday August 28, 2013 @12:16PM (#6290939)
Also, it can be a good idea to yank out all of those into a separate config file. Although, it destroys locality, so it depends on the use case I guess.
Re:What is a magic number, and why is it bad? by qu4z-2 on Thursday August 29, 2013 @02:41AM (#6294584)
I wouldn't move it into a config file unless you're also testing the code works correctly with different values. Otherwise it's just asking for trouble.