6 ms·
As a card-carrying Perl zealot I'm always pretty annoyed by trying to do testing in other languages; TAP integration from top to bottom in Perl is a joy.
by peteretep 11y ago
As a card-carrying Perl zealot I'm always pretty annoyed by trying to do testing in other languages; TAP integration from top to bottom in Perl is a joy.
- agumonkey 11y agoI find strange that practices of the Perl community are so largely not publicized. From moose object model, to CPAN, and now TAP (first time I read about it). I find it sad that in college we were fed the Java way of things (OMG, JUnit). I guess any old culture won't catch light.
- berntb 11y agoA Java inspired logging module is big on CPAN, at least. :-)
- xorcist 11y agoPerl is not "old" culture. Sure, CPAN and much of the testing infrastructure including TAP is from the 90s, but so is Java. But a lot of the other cool stuff, such as Moose, is from the 00s.
- agumonkey 11y agoYeah, but by the time Moose came, Perl was already an old neckbeard thing in the eyes of the public.
- latj 11y agoPerl did a lot of things right a long time ago. For me a few of the big ones arent technical-- CPAN as you mentioned, was the most useful repository of any programming community. Another one for me is that Perl documentation has conventions and one of those conventions is a tiny "synopsis" at the top of each page that shows actual code using the thing that page is describing. I dont think people understand how much this has helped-- and its been that way for 20 years. Of course, in Java to show how any simple library works you'd have to show the contents of at least 8 separate files but hey- who's fault is that? ;) Now that I think about it, the documentation in general (in Perl) was light years ahead of its time. perldoc, the included documentation is pretty comprehensive. The camel book came out when a lot of hacker news readers were a twinkle their father's eye. Perl was a big part of Oreilly's good ole days and it set Perl apart as a community that had really good accessible books available that werent CS textbooks but also werent "Learn how to programmer in 24 minutes". I dont use Perl much these days. Most of my peers are afraid of Perl or were told to hate Perl. They dont know much about it other than when to laugh at a Perl 6 joke. A few point out that python has come of age and greatly out performs Perl. Still, there will always be plenty of perl in ~/bin.
- agumonkey 11y agoI hear this regularly about docs, also distribution. What's odd is that they don't develop fancy frameworks to manage it, they mostly just do valuable work. A fair amount of javadoc were paraphrase-content, but that's cool it was generated for you. ps: python fans talking about performance, how sad.
- rhizome31 11y agoCould you elaborate a bit about how you find TAP better than xUnit? I did some Perl testing years ago and mostly xUnit-style testing since then and it didn't strike me that xUnit was much worse than TAP. Genuine question since I'm very interested in the topic of testing.
- peteretep 11y agoxUnit is a testing framework, TAP is a tool to allow different testing modules to interact with each other, and their output collated. The most commonly used Perl xUnit implementation uses TAP.
- agumonkey 11y agoI didn't want to imply better, just avoiding the monoculture that I was given while learning programming.
- dasil003 11y agoI think in large part it's because Perl's formative years predate the blog revolution. Ruby, PHP and Java existed during Perl's ascendency, but they were in a gestational phase. When Ruby broke into the mainstream US programming culture was when blogging was at its height, and the open source advocacy culture that coalesced around Ruby on Rails became the new template. It was such a powerful influence that it even rubbed off on existing stacks like Java and .NET to some degree—these corporate-driven platforms actually needed a good dose of the simplicity and pragmatism that Rails and PHP were peddling. But for Perl they already had all the pragmatism, along with much better tools, and an established culture, so it probably seemed they had little to learn from the open source communities of the aughts. If there's one thing that really hurt Perl in this new environment it was the unapproachability of Perl. It is clearly of an earlier era when it was taken for granted that programming was difficult and powerful tools with steep learning curves were favored. When I turned 18 in 1996 Perl really piqued my curiosity and I aspired to learn it, but what actually stuck was PHP simply because I was shipping so much faster. The whole second system syndrome with Perl 6 obviously didn't help either, but I think that's secondary to the poor on-boarding and general newbie-friendliness of the whole ecosystem.
- agumonkey 11y agoI've searched a bit about PHP rise compared to the ubiquitous and loved perl, didn't find a lot, but most of them were saying PHP the language had nothing to do with it, it was a HTTP server integration issue, modperl was complicated and had memory issues (shared state?), modphp was fast and stupid. Sure the language is very fun for a newbie, but PHP in thoses days was a technological debt generator..