News for hackers. Stuff that matters.
Re:An External Replication on the Effects of Test-driven Dev... by isuckatcoding on Tuesday October 18, 2016 @11:07PM (#12740712)
As someone who uses unit tests to find bugs in my code, that I would never otherwise find, this is surprising.
Re:An External Replication on the Effects of Test-driven Dev... by erik on Tuesday October 18, 2016 @11:12PM (#12740741)
It's not about TDD vs no tests. The article is about tests first or tests later.
Re:An External Replication on the Effects of Test-driven Dev... by danjoc on Tuesday October 18, 2016 @11:20PM (#12740798)
And yet, that is not what the clickbait title implies.
Re:An External Replication on the Effects of Test-driven Dev... by zzalpha on Tuesday October 18, 2016 @11:23PM (#12740806)
Only if you think unit testing necessarily requires TDD (which is defined as writing tests before writing the code that passes those tests).

It doesn't.

All the article says is TDD has little or not impact... it does not say unit testing as a practice has no impact.

Seems to be a common misunderstanding around here that you, too, have fallen victim to...

Re:An External Replication on the Effects of Test-driven Dev... by danjoc on Tuesday October 18, 2016 @11:48PM (#12740921)
>Seems to be a common misunderstanding around here that you, too, have fallen victim to...

I work with people who openly believe that unit testing is a waste of time. Personally, I think they are afraid, because they don't even know how, and don't care to learn. They would see that title, and that's all the confirmation bias they would need.

Thanks for assuming the worst about me though.

Re:An External Replication on the Effects of Test-driven Dev... by zzalpha on Wednesday October 19, 2016 @12:13AM (#12741020)
Err, my apologies if that came across as a slight, I literally meant you and a lot of other folks made the exact same mistake. No judgement intended, it's clearly a common misapprehension.

My guess is that a lot of folks got introduced to unit testing through test-driven development and, as a result, conflate the two, assuming the former necessarily implies the latter.

Speaking for myself, I was writing UTs long before the TDD fad landed and so I never picked up the habit. It's just not the way my developer mind works, and I've not found it compelling enough to try and re-train myself.

That said, not believing in the value of automated regression test (of which UTs are the lowest hanging fruit) is utter madness...

Re:An External Replication on the Effects of Test-driven Dev... by Rapzid on Wednesday October 19, 2016 @12:40AM (#12741112)
Unit testing is not always a waste of time.

Unit testing can be a waste of time.

Re:An External Replication on the Effects of Test-driven Dev... by erik on Tuesday October 18, 2016 @11:23PM (#12740811)
That is a good point. The implication got me to click through to the article.
Re:An External Replication on the Effects of Test-driven Dev... by WalterSear on Tuesday October 18, 2016 @11:10PM (#12740726)
That not TDD, though. It's more similar to test-after.
Re:An External Replication on the Effects of Test-driven Dev... by mattschmulen on Tuesday October 18, 2016 @11:18PM (#12740790)
I think test after is a reasonable approach. I am constantly dealing with new code bases and in the interview process I am often asked about my philosophy about testing. My response is thatbtrsting occurs on two fronts from the top down ( functional UI tests) and from the bottom up (unit tests). When it comes to unit testing my approach is to focus on the hotspots. If something gives you trouble, or if you find a bug/ issue then wrap it in a unit test. That way you don't have to worry about it. Bugs tell you where the weak spots in your code base are. When they speak to you, listen and take some action. Otherwise, I feel like chasing blanket coverage is not worth the effort in most products.