4 ms·
There is a conclusion here that I'm missing which could have easily been made. It's that excessive logging often attempts to replace tests. Using the trivial ex
by wwilim 5y ago
There is a conclusion here that I'm missing which could have easily been made. It's that excessive logging often attempts to replace tests. Using the trivial example from the article, you wouldn't feel compelled to log the result of Add(x, y) if the Add was unit tested.
- chriswarbo 5y ago> if the Add was unit tested The author talks about pure functions; "unit testing" sort-of implies a similar thing (something executable in isolation, turning arguments into return values). (Impure functions sort-of imply integration testing, etc.)