re: 10 practices for writing readable code VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION

Another favourite of mine is when the production code has checks for something that's injected only for tests. To add insult to injury, those tests are usually called... wait for it... unit tests!

Otherwise, yes, that looks like a sensible rule.

code of conduct - report abuse