2 ms·
Yeah, as soon as code has more than two "real" branches, I don't trust myself to manually test them all. One of them will be broken quickly if I keep hacking in
by sdenton4 7y ago
Yeah, as soon as code has more than two "real" branches, I don't trust myself to manually test them all. One of them will be broken quickly if I keep hacking in a particular branch. (This is, secretly, also an argument for writing code in sufficient generality to avoid this phenomenon in the first place.)
I also never trust a test that passes the first time I run it. I am both terrible at writing correct code, and completely normal in that regard.
- allannienhuis 7y agoI believe he's using the term branch different than you : 'alternate code path'
- sdenton4 7y agoNo, alternate code path is exactly what I mean. What's the functionality I'm coding in support for today, in addition to the stuff I was supporting yesterday? How do I know the stuff from yesterday still works? TESTS!