Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
Perl Christmas Cheer

Perl, Perl 6, and Two Application Frameworks Release 2017 Advent Calendars (perladvent.org) 38

An anonymous reader writes: Friday saw this year's first new posts on the Perl Advent Calendar, a geeky tradition first started back in 2000. It describes Santa including Unicode's "Father Christmas" emoji by enabling UTF-8 encoding and then using the appropriate hexadecimal code.

But in another corner of the North Pole, you can also unwrap the Perl 6 Advent Calendar, which this year celebrates the two-year anniversary of the official launch of Perl 6. Its first post follows a Grinch who used the but and does operators in Perl 6, while wrapping methods and subroutines to add extra sneaky features, "and even mutated the language itself to do our bidding."

Perl/Python guru Joel Berger has also started an advent calendar for the Mojolicious web application framework (written in Perl), and there's apparently also an advent calendar coming for the Perl Dancer web application framework.

This discussion has been archived. No new comments can be posted.

Perl, Perl 6, and Two Application Frameworks Release 2017 Advent Calendars

Comments Filter:
  • by DCFusor ( 1763438 ) on Saturday December 02, 2017 @11:56AM (#55664059) Homepage
    Real programmers just use it to get 'er done. I guess you feel embarrassed enough to want to hide your identity while displaying ignorance and intellectual laziness.
    • Oh please. The only way perl could be more write-only was if there was a requirement that you carve it in granite.
      • Re:ACs hate it (Score:5, Insightful)

        by DCFusor ( 1763438 ) on Saturday December 02, 2017 @12:14PM (#55664147) Homepage
        Bad programmers can create write-only code in any language...I could name a few that are worse than perl, since they copied the regular expression engine and too-clever-by-half beginner people abuse the snot out of it. Is that what you mean? I don't know anyone who has troubles reading and maintaining my code in any language. Hmm...maybe it's not the language.
        • "Bad programmers can write bad programs" is a tautology. The problem with perl is that it makes it (really) hard for good programmers to make (and MAINTAIN) good programs.
          • Re:ACs hate it (Score:4, Interesting)

            by arth1 ( 260657 ) on Saturday December 02, 2017 @01:38PM (#55664493) Homepage Journal

            "Bad programmers can write bad programs" is a tautology.

            No, it isn't. Linguistically there's nothing tautological about "A can B", no matter what the relation between A and B is.

            The problem with perl is that it makes it (really) hard for good programmers to make (and MAINTAIN) good programs.

            There are many problems with perl, but unless you define what a "good program" is, this is meaningless.
            Perl gives programmers more rope than most languages. How they use that rope is up to them.

          • I will swear by Perls ability to let me write more features in less time, with test cases and documentation, which is easier to maintain than any other language Ive used extensively (C++, C, Delphi, Java, Javascript, Bash)

            Ive done a little Python and a little Ruby, and both were prettier to look at, but the toolchains were not as well developed for general purpose agile tinkering at the time I used them. Its hard to make a fair comparison though without delving as deep into those as ive done with perl.

        • by eddeye ( 85134 )

          Bad programmers can create write-only code in any language...I could name a few that are worse than perl, since they copied the regular expression engine and too-clever-by-half beginner people abuse the snot out of it. Is that what you mean? I don't know anyone who has troubles reading and maintaining my code in any language. Hmm...maybe it's not the language.

          You can cut off your foot with a scalpel or a chainsaw - but one of them makes it a lot easier to do accidentally.

          With strict discipline a good p

      • Re: ACs hate it (Score:2, Interesting)

        by Anonymous Coward

        I havenâ(TM)t seen Perl in a long time but canâ(TM)t imagine itâ(TM)s never evolved into something which is basically the same as everything else by now.

        I have to admit the reason I donâ(TM)t bother with Python is that so far, most Python code Iâ(TM)ve seen has been Write-Only because just like Perl and PhP, the people writing most of the code in it has been âoeI donâ(TM)t want to learn to program, I just wanna do stuffâ.

        In the old days, it was BASIC, Visual Basic, se

        • Mod parent up. Most people oversimplify the issues here. A carpenter may not be a good architect - the reverse is also true, few get both right. The vanity titles get tossed around far too much in lieu of pay and real perks.
      • I'll second that. I once tried to understand what was going on in get_iplayer. It was completely opaque. Regexes can suck my ass. I spent several days trying to figure something out (I don't remember what I was trying to do) to no avail. I ended up giving up. To be fair, I'm not a professional programmer, but I don't often struggle that much with source code. I swear, every time I have trouble like that it's been with perl or with c++ when someone gets creative.

  • by NoNonAlphaCharsHere ( 2201864 ) on Saturday December 02, 2017 @11:57AM (#55664071)
    If you see cartoon swearing, like "?#@*&%!" and think to yourself "That's silly, he should have used "#@$_" instead, it's more efficient", you're been using too much perl.
  • Its first post follows a Grinch who used the but and does operators in Perl 6 ...

    ... it's nice to see someone using Perl 6.

  • Someone has a good sense of humor. The Perl6 advent calendar is hosted on a Wordpress site.

    • Re: (Score:2, Redundant)

      by iggymanz ( 596061 )

      PHP may be a sloppy language that encourages buggy low-quality work such as Wordpress & modules....but you think anyone actually uses Perl 6 for anything? pfffft, Larry screwed around too long, the world at large has left it behind.

      • Perhaps. I haven't had time to mess around with it yet, but I've been meaning to. The problem is Perl6 is a clean break from Perl5, so it is only useful for new projects. If you are working with legacy code, you have to stick with Perl5. And there are also a ton of useful packages that are not yet available for Perl6.

        Also, while Larry did screw around a bit, the delay wasn't entirely his fault. There were a few groups writing competing specs/implementations, and rewriting them, before they finally settled o

      • by piojo ( 995934 )

        It has potential. Perl 6 is full of good ideas, so I started using it for a small project. Don't think of it as perl--it is something new, and it hasn't gained big popularity yet. It's not a new version, it's a new language. If they'd called it P++ instead of Perl 6, it would have been a more accurate description.

        • it's too complex when other languages can do the same job with a fifth or less the syntax, Larry and co. went crazy and threw in everything and the kitchen sink

          • by piojo ( 995934 )

            it's too complex when other languages can do the same job with a fifth or less the syntax, Larry and co. went crazy and threw in everything and the kitchen sink

            I have sympathy for that viewpoint, but it's no more complex than C++ (including the two most common libraries), but it does a lot more with less library use and boilerplate. It took me a month to feel comfortable with Perl 6. A lot of that "kitchen sink" stuff is really useful. gather/take iteratively builds data structures. emit/tap is for event handling. Junctions and parallel loops are just plain awesome. But each feature seemed unnecessary until I needed to use it. I'd advise against making a firm judg

            • You made me laugh with that, as a former C++ dev you picked the one language that is the extremely pathological case of bad architecture. Using that as example is saying "well georgie the birthday pedo clown here isn't so bad, just look at Jeffery Dahmer who ate his victims"

              • by piojo ( 995934 )

                We may have different metrics. I chose a language that's highly effective and widely used. Its design obviously isn't bad enough to keep people from using it. I didn't cherry-pick it, either. I could have named Haskell as an example of difficulty and theoretical simplicity hampered by conceptual complexity. I have other complaints about Python, Ruby, and Java, so I wouldn't use them as examples in language comparisons. C# is nice but not syntactically expressive and with a weak class/inheritance model. C++

  • Perl seems to be dying. Everybody loves bash again now, and python, go, node.js, etc..

    A big miss by the Perl community was not getting AWS Lambda support or an AWS module for a long time. Boto ate Perl's lunch.

Trap full -- please empty.

Working...