3 ms·
Fun fact: the majority of the Amazon.com home page is/was written in Perl (Mason). It's slowly being re-written in JVM languages, but I'd bet that some portion
by ryanianian 8y ago
Fun fact: the majority of the Amazon.com home page is/was written in Perl (Mason). It's slowly being re-written in JVM languages, but I'd bet that some portion of the rendered HTML will come from Perl for a very long time.
I personally really like Perl. It does kinda encourage code-golfing, but that's what makes it so nice for one-off scripts.
- waynecochran 8y agoPerl is the original duct tape if the web.
- rurban 8y agoThe templating system is still perl, and all their tests are run in perl.
- btilly 8y agoUseless trivia. Perl was doing unit testing back in the mid-80s. One of Perl's early selling points was how portable they were, and the fact that they had comprehensive unit tests so long before the rest of the industry realized that was a good idea is one of the reasons for it.
- rurban 8y agoMore like that they invented a simple test protocol, called TAP. It's slow, because perl runs it, but you can also emit tap from C or C++, and it's much easier and more flexible than dejagnu or other low-level test frameworks.
- btilly 8y agoIt wasn't just a test protocol. Perl 1 came with a test suite, which its Makefile ran by default before installation. As Perl grew up, the idea of "you have tests for at least basic stuff" was built into the culture. For example back in the mid-90s it was expected that every module came with a test suite, and every site would run that test suite before installing the module. When you went to package something for CPAN, you were expected to have a ./t directory with tests, and there were lots of examples to show you how to do it. And automated scripts that expected you do to it. It was something like 15 years before anyone thought of naming the test protocol. It was just how you did things.