|
|
|
|
|
by majormajor
1290 days ago
|
|
Various things like "manual to change them" that make "magic numbers" bad in regular code make them good for testing (or at least less bad, a constant for that is still what I'd usually use, but a pretty specific constant, sometimes at the unit test level - shared ones get dicey). Agreed on the ease of having problems of using variables on both sides. |
|
Code that is write once read k < 10 times has very different lifecycle expectations than code that is constantly being work hardened.