3 ms·
I find it hard ever to program for hours straight, no matter what the external stimuli is. However, I've found that test-driven development has worked to get me
by danso 14y ago
I find it hard ever to program for hours straight, no matter what the external stimuli is. However, I've found that test-driven development has worked to get me back on task after I've strayed. The physical act of just entering in "rake test" and seeing "Tests passed" can be enough of a trigger for me to get back into coding...and if I've left some broken tests for me to fix, I have a much easier time remembering what I needed to do next...without the extra overhead distraction of finding my to-do list.
Of course, one could argue that the monotony of writing tests is what keeps me from being fully engaged to begin with :)