Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Then you write another test. That's the whole point of TDD. As you keep writing more tests, the closer it gets to its final form.


Have you ever seen someone carve the inverse of a statue from a solid block of stone? If so, they are doing TDD.

Yeah, me neither…


The idea of TDD is that you should have the tests before you have the code. If your code is failing in real life before you have the tests, that's no longer TDD.


right, and by the time I have 2^googolplex tests then the "AI" will finally be able to produce a correctly operating hello world

oh no! another bug!


I've definitely seen a number of files where the implementation is maybe like 500 LOC and the test file is 10000+ LOC.

I agree rigidly defining exactly what the code does through tests is harder than people think.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: