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

> Tests are important but TDD is a damn cult.

I don't see people commenting on this one! That may be a good thing because it means people are not questioning it :)



I like TDD when I’m mostly dealing with functional/library like code where I have a solid understanding of the interface/api.

Just put all the expected input/outputs in a big table test and iterate.

TDD is awful when you don’t have a clear idea about the interface and need to mock a whole bunch of internals that are likely to change.


Techniques aren't culty, people are. I've been practising TDD for years, but I've only ever heard of this cult in web forums.


Count yourself lucky then. I've tried to work with TDD cult members and it was one of the worst experiences of my professional life. A good sign that people have moved into the cult is when they start saying that people who are not using TDD are "unprofessional" or produce "shit" code.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: