News for hackers. Stuff that matters.
Re:Ask HN: Do you write tests before the implementation? by sdenton4 on Friday November 15, 2019 @11:30AM (#21546187)
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.

Re:Ask HN: Do you write tests before the implementation? by allannienhuis on Friday November 15, 2019 @02:04PM (#21547676)
I believe he's using the term branch different than you : 'alternate code path'
Re:Ask HN: Do you write tests before the implementation? by sdenton4 on Tuesday November 19, 2019 @09:49PM (#21580694)
No, 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!