4 ms·
...sign. Isn't that the whole idea behind keeping methods short and classes high cohesion? The simpler your unit of code is, the less useful your unit test bec
by jondubois 9y ago
...sign. Isn't that the whole idea behind keeping methods short and classes high cohesion?
The simpler your unit of code is, the less useful your unit test becomes. By that definition, I reach the opposite conclusion as the author's.
The problem with unit tests is that they assume that most of the complexity lies in individual functions.
From my experience, most of the complexity and unpredictability of software lies in the wiring logic between components.
Most difficult software bugs are not the result of a function not working correctly - Most of the time, it is simply the result of a function not being used correctly... E.g. Someone make an incorrect assumpti