4 ms·
I like the way that testing as I go alters my code base, making each bit of code runnable in isolation and so easy to understand and fix. I hate flaky tests an
by dhbradshaw 3y ago
I like the way that testing as I go alters my code base, making each bit of code runnable in isolation and so easy to understand and fix.
I hate flaky tests and I hate slow tests.
Figuring out how to eliminate both takes care, but it gets rid of two of the three main negatives of testing.
The third main negative for me is that testing can prematurely add friction around changing things like function signatures. Mitigating this is addressed well in my current favorite essay on effective testing:
https://matklad.github.io/2021/05/31/how-to-test.html https://matklad.github.io/2021/05/31/how-to-test.html