News for hackers. Stuff that matters.
Re:Ask HN: What's the most simple thing you struggle to unde... by samangan on Friday June 09, 2017 @12:30AM (#14519187)
I don't follow TDD strictly, but I still think testing is important. I mostly see tests as help for future programmers (which includes the original authors), kind of like documentation. It's a rigid description of how the system should operate and therefore is usually helpful for refactoring or extending old code. I also don't doubt that many people go years without seeing utility in writing lots of tests. From my experience there's a lot of factors that go into how many tests you write before getting diminishing returns. Some off the top of my head: static v dynamically compiled lang, functional v procedural lang, age of project, etc.

There are no comments on this comment yet.