News for hackers. Stuff that matters.
Re:TDD, Straw Men, and Rhetoric by raverbashing on Wednesday April 30, 2014 @07:10PM (#7677119)
Of course creating mocks or circumventing the database may create more bugs (or hide more) than just wait the couple of minutes for the real thing

Adding another failure point is exactly what the name says: another possibility of error or bug

Sure, we can talk about the "one true way" of doing tests, how to make hundreds of tests run in a short time, etc (the fact that TDD insists in creating one test for each tiny thing goes against it, btw) but yeah, I prefer spending more time solving the problem, and not testing around it.

Re:TDD, Straw Men, and Rhetoric by gary_bernhardt on Wednesday April 30, 2014 @07:20PM (#7677156)
TDD is a way of writing tests, not a prescription about when to write them. I explicitly say in the post that I only do TDD 75% of the time for web apps and more like 50% for other code.