News for hackers. Stuff that matters.
Re:I have complicated feelings about TDD by dgunay on Thursday August 18, 2022 @05:05PM (#32514889)
Good point. Sometimes I cheat and implement before I test, but often when I do that I'll comment & uncomment the code that actually does the thing so I can see the tests go from red to green.

Have been meaning to try mutation testing as a way of sussing out tests that cover lines but don't actually test behavior.

Re:I have complicated feelings about TDD by majikandy on Friday August 19, 2022 @02:51AM (#32518157)
Snap, me too, amazing how many times it catches a simple mistake too like a < instead of > that you were certain you got the right way round as you wrote it.