2 ms·
Mostly because it's almost impossible to know this by just reviewing the code, without having to run it If you believe that, then either - The code is badly d
by userbinator 12y ago
Mostly because it's almost impossible to know this by just reviewing the code, without having to run it
If you believe that, then either
- The code is badly designed/obfuscated enough that its behaviour is not easy to see (something that should definitely raise a concern at a code review)
- The reviewer doesn't know enough to figure out what the code should do (which in and of itself is a huge WTF.)
In some sense, testing (especially the black-box type) is "dumb". It cannot discover failures at edge cases which could be seen from reading the code and thinking about its behaviour, something that should definitely happen at a code review. It is useful as a sanity check, but cannot replace reasoned inspection.