News for hackers. Stuff that matters.
Re:An External Replication on the Effects of Test-driven Dev... by madeofpalk on Wednesday October 19, 2016 @12:07AM (#12740995)
Yes.

When doing UI code (with something like React) it's next to impossible to do TDD - you can't know the structure until you actually implement it.

If I'm fixing a bug in some sort of non-ui code, I often find TDD to be very helpful. Create a test case that demonstrates that failure, then fix the implementation to make the test pass.

Re:An External Replication on the Effects of Test-driven Dev... by Udik on Wednesday October 19, 2016 @01:31AM (#12741323)
I'm not sure that testing a bug, even before writing the code that fixes it, qualifies as TDD.