in reply to Re^7: Plack Middleware aXML
in thread Plack Middleware aXML
It would be interesting to see just how many lines of Perl you need to trigger the same functionality as this example.
That's not a fair comparison, for several reasons:
- SLOC isn't an interesting metric until you get to orders of magnitude difference
- Comparing a framework to something at a different abstraction level is misleading
- There's running Perl code behind the aXML example that looks much like the eventual Perl code someone would have to write anyway
- SLOC isn't the only meaningful concern. Consider syntax checking or highlighting, or debugging, or testing. The Perl infrastructure and toolchain has quite a few advantages over aXML due to its maturity
I'm not saying aXML lacks its advantages, but concision alone isn't such a meaningful metric.
Also your example Perl 5 code has a security hole. (We've talked about this before.)