Although, I haven’t explicitly done test-first programming, it appears as though it could be a great way to remove the trepidation. I do, however, often work on problem sets for school which come with pre-written tests, and I find myself mildly anxious before I run those tests on my code. Perhaps, the problem here is that I have internalized that code is “done” when the last line is written, as opposed to the test-first paradigm where “done” necessitates passing all the tests.
How do you feel in that space between completing your last line of code and running your first test?
Noting: I feel trepidation towards testing my code. I believe this is because I suspect that my code has bugs and bugs are equated to debugging (i.e. work). Yet, once I get over my trepidation and test my code with all the supplied test cases, I become giddy and want to test everything. I believe this is because I feel that my code is free of bugs and every test is then a testament to what I’ve created. Has anyone else experienced something similar?