5 ms·
Perl more than any other language I know depends on the self-restraint of the programmer to write readable code and not be overly clever with their syntax. I’ve
by avian 7y ago
Perl more than any other language I know depends on the self-restraint of the programmer to write readable code and not be overly clever with their syntax. I’ve worked on some large Perl codebases in the past that were as readable and maintainable as, say, Python.
- mattbillenstein 7y agoThat is not normal.
- mfontani 7y agoAll the "big" Perl codebases I've worked with were as readable as I'd have expected any "big" codebase to be, if not better. What was your experience like?
- mattbillenstein 7y ago25k lines of spaghetti garbage - all in one file.
- Grinnz 7y agoSorry you had to deal with that. Do you think it would have been easier to deal with 25k lines of spaghetti garbage in a file named .py?
- mattbillenstein 7y agoI think it actually probably would have been - not an ideal way to write code, but Python is certainly easier to read than your average Perl.
- orpheline 7y agoI don't find it so. I do both Perl and Python at work: the Perl code is almost always clearer to read IMHO. I know some people find curly brackets and sigils distracting, but to me they make code less ambiguous.
- autoexec 7y agoYeah, I've seen perl programs so broken down into simple procedural steps that non-coders were able to go in, understand what it was doing and even make some of the changes they needed after a little trial and error, but also other programs so concise and/or confusing that I'd rather rewrite it than try to figure out how it works.