2 ms·
> In my case, I've found I write more readable, easier to understand code when I use tests to drive out my design. In my case, I've found the opposite—when I u
by mcphage 10y ago
> In my case, I've found I write more readable, easier to understand code when I use tests to drive out my design.
In my case, I've found the opposite—when I use tests to drive my design, I end up with lots of tiny moving parts; each one individually is understandable, but the design as a whole is not, and figuring out how to do anything different is an exercise in frustration. I end up jumping between 2 or 3 files, trying to figure out where anything happens, because it's all been unit tested into perfect isolated pieces.