24 ms·
When tackling a new problem, you still need to build a lot of utility functions that you know how to write. Tests help here. For example, I'm building a statis
by yummyfajitas 13y ago
When tackling a new problem, you still need to build a lot of utility functions that you know how to write. Tests help here.
For example, I'm building a statistical model. I need to load a bunch of data from files, transform it in straightforward ways, then run my model against it. TDD doesn't help me come up with the right model, but it does help me not screw up while loading the files. When my model fails to be predictive, I know the model (rather than the loader) is at fault.