1. 3
  1.  

  2. 3

    TL;DR author believes Python is better than Perl.

    The complaints about Perl were perhaps valid 20 years ago, but there’s been a lot of changes.

    https://stackoverflow.blog/2022/09/08/this-is-not-your-grandfathers-perl/

    (Edit now linked here at https://lobste.rs/s/jqsm6e/this_is_not_your_grandfather_s_perl)

    This specifically addresses filehandles and subroutine signatures.

    1. 5

      TL;DR author believes Python is better than Perl.

      The entry is an long essay with dozens of concrete reasons backed by code examples and other technical details well outlined. I find your wording really unfair. It it’s just a belief of them, it is one based in very many well explained and valid reasons.

      The complaints about Perl were perhaps valid 20 years ago, but there’s been a lot of changes.

      I disagree. Pretty much everything mentioned in the article still holds. Certainly the fact that it has too many constructs and syntax elements. Which if anything, only got worse.

      I do not like to fuel language wars. Each has its own goods and bads. But 20+ years have past, perhaps it is time to accept that there are specific reasons that made python a more capable language overall. Not everything is subjective. On can certainly use perl in place of python for many things, and perl still excels in some domains. But in the face of the current state of affairs, it would be very silly to look at how these languages diverged in terms of usar base and simply attribute that to personal preference. There are reasons. And some are certainty objective.

      1. 2

        The entry is an long essay with dozens of concrete reasons backed by code examples and other technical details well outlined.

        I recently mentioned that I haven’t used Perl in decades, some of the complaints were outdated. It doesn’t make much sense to bring up example of what practical use of a programming languages was like decades ago and compare it to a modern version of a different programming language.

        There’s a lot of things to criticize about Perl and I switched away, way back for a reason, but they should be based on present practice rather than outdated, non real life examples of active projects.

        One of the last things I’ve heard about from the Perl community is Mojolicious being released. I just looked it up and at least to me it seems somewhat decent. And it doesn’t even use modern things mentioned in “This is not your grandfather’s Perl”, like function signatures.

    2. 2

      Larry Wall unironically said, “You can write assembly in any language.”

      Unironically.

      1. 2

        I unironically find it too believable to actually bother with fact-checking.

        1. 1

          Unironically.

          I may be an old fart but 3 consecutive smileys doesn’t imply “unironically” to me

          https://groups.google.com/g/comp.unix.questions/c/aSSRhRaMAFY/m/rO2eMk58uPQJ?pli=1

          (note that his answer referred to a program listing in sed)

          1. 2

            By “unironically”, I meant that he didn’t realize that he was actually making fun of Perl, and of his own coding.

            But now that I read it again with new eye, you might be right … he might be in on the joke. 🤣

            1. 2

              Well here’s an example of his Perl code…

              https://www.cs.ait.ac.th/~on/O/oreilly/perl/cookbook/ch09_10.htm#ch09-40514

              BTW the Perl Cookbook was where I learned Perl, it’s an excellent resource.

        2. 2

          Traditionally, a database uses some sort of DELETE function.

          Lobste.rs seems to be trying to delete the a different front page story by creating an equal and opposite story.

          How’s that working out?

          1. 1

            I think someone saw that article and thought to post something they enjoyed on Perl’s suckage. It’s not antimatter.