2 ms·
How about code that dumps internal state to logs or standard out and really helps when debugging a unit test? Don't want it running in production because it's
by barrkel 7y ago
How about code that dumps internal state to logs or standard out and really helps when debugging a unit test?
Don't want it running in production because it's a whole bunch of database queries that just tax the DB, and production volumes are bigger than test cases.
Dead code, but useful dead code.
(Whether excluded by switch or comment makes little odds; it has no value in being turned on dynamically, so it's statically verifiably dead.)