News for hackers. Stuff that matters.
Re:It Takes 6 Days to Change 1 Line of Code (2015) by quelltext on Tuesday December 06, 2016 @07:41PM (#13119563)
Nobody set it needs to be a magic number. A descriptive constant name will address that. However, a setting in a config file invites tampering, which in turn means more complicated tests to account for that. It might make sense if frequent changes are anticipated.

However, not every hard coded constant should or needs to be in a config file.

There are no comments on this comment yet.