NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Red Apples vs Green Apples (Score:2)
I wouldn't equate a core development team with that language's community. The Perl core team certainly was and is fanatical about testing, but the community? I think they caught up much later. In the case of Ruby we have the opposite situation - the community
Re: (Score:1)
In 2000, CPAN authors had the expectation to write tests. The CPAN client ran those tests when installing modules.
It's 2009. Does Ruby gems run tests yet?
You don't even have to do this with Perl. Someone writes a new test module, once, uploads it to the CPAN, and then everyone can us
Re: (Score:2)
Yeah, but I don't know when a real jump was made from running that stock one-test default test file that h2xs generated to people being really good about writing tests. That's hard to know for sure, but I would put it somewhere around 2002. But still, yeah, pretty good.
Re: (Score:1)
It started in late 2001, but you're probably right that it only became popular and inevitable in 2002. I spent a lot of time in late 2001 avoiding finishing a book and writing tests for the Perl 5 core instead.
That's what I don't get about the "Rah rah, TDD whee!" cheerleading from some parts of the Ruby community. You might as we
Re: (Score:1)
That's what I don't get about the "Rah rah, TDD whee!" cheerleading from some parts of the Ruby community. You might as well not write tests if you're not going to run them.
Yeah, that makes no sense to me either.
Re: (Score:1)
How good? 200,000 fully automated test reports per month [cpantesters.org] good?
I'm not even sure the "reputation" part is true... (Score:1)
Perl's name is mud to most people outside the community (or so it seems), but in my experience, the Java community has a very strong reputation for TDD. It's probably partly because Java is still the defacto language for a lot of new development, and a lot of new stuff tends to focus on modern practices.
But I do think the testing movement in Perl pre-dates even Java's. One reason why Perl doesn't use xUnit - it wasn't invented when the original test modules were written.
We all have biases towards our langua
TDD != testing (Score:1)
I love Perl. I love testing :-)
That said... while I see a lot of focus on *testing* in Perl. I've not encountered *that* much focus on TDD. They are - as you know - completely different things.
Now I've not spent huge amount of time with Ruby teams / code bases / community - so I can't say whether they're better or worse. But evidence of testing != evidence of TDD.
Re: (Score:1)
TDD is all well and good, but if you don't run your tests, you've wasted your time writing them.
Say what you like about the Perl community, the language, our testing libraries, our culture, or whatever -- but we run our tests.
Re: (Score:1)
No I haven't. I still get the "D" from TDD. I get that even if a third party never runs my tests again.
I'm not saying running tests is useless. They're not. I'm not saying that the Perl/CPAN testing infrastructure isn't grand. It's fantastic - the best in any language that I've used.
I'm just saying that it has nothing to do with whether Perl folk do TDD. Because it doesn't. And that was the quote you seemed to
Re: (Score:1)
Agreed, but we can measure that neither for Perl nor Ruby.
Along those lines, I'm sure you have the same experience that I do, that many (if not most) people who claim to do TDD really don't, not in any pervasive fashion.
Perhaps I've overspoken here, especially claiming that TDD without running the tests is