user-pic

Aristotle

  • Posted Never matching: everybody is doing it wrong to Aristotle

    Well, not actually wrong, just slow. But the exaggeration makes a punchier headline, you’ll admit.

    This comes up when an interface takes a pattern to match things against. Sometimes you have some reason to want this match to always fail, so you want to pass a pattern which will never mat…

  • Commented on Is Perl a write only language?
    Oh, I see. I completely misread that, and probably so did Randal. Under that misreading, your first reply to Randal reads like a doubling down on that apparent position, when actually that response is just prioritizing overtly demonstrating disregard for...
  • Commented on Is Perl a write only language?
    But that has nothing to do with understanding why in the world he's objecting to saying teachers who tell their students perl is hard should not be teaching computer programming courses. He is not in the world objecting to that....
  • Posted Dodging the Go loop trap to Aristotle

    Ted Unangst:

    And now we’re trapped. There’s only one friend variable, constantly changing a…

  • Commented on The Hidden Power of Prototypes
    That seems interesting in the sense of “may you live in interesting times” 😛 Another possibly useful prototype is the underscore (“_”), which allows functions to default to $_ when given no argument, like e.g. chr and hex do....
  • Commented on No One Is Immune to Abuse
    You seem to be concerned about people liking you, so it could be anybody. Buzzard, Buzzard. If you go around accusing people of not knowing the difference between empathy and sympathy, maybe you should not be making the same mistake....
  • Commented on No One Is Immune to Abuse
    Hey, the guy who doesn’t care is back to reaffirm his not caring. Welcome back. 🙂 Of course I’ma do me. Who else?...
  • Commented on No One Is Immune to Abuse
    And yet, Dave. This article, which took days to compile and just as long to carefully brush out any polemic so it would stick entirely to facts and technical arguments… evidently nevertheless registered as an attack when published. It was...
  • Commented on No One Is Immune to Abuse
    Hmm. I almost left Perl because of Sawyer’s stewardship. And I mostly dropped out of the community because watching the giant flamewar caused by the technical decisions he intended to pursue made me miserable. The exhaustion of bracing for the...
  • Commented on Next stable DBD::SQLite will be released at the beginning of November
    Hi Doug, a blog comment column is probably not the best venue to raise a request of this nature. A mailing list or the issue tracker seem more suitable. And hey, look: https://github.com/DBD-SQLite/DBD-SQLite/issues/101 — sound familiar?...
  • Commented on Profiling Perl under Apache
    Ah. That story is somewhat more complicated. These days when people say “Markdown” they mean a somewhat extended version of the syntax that most sites have converged on, whereas the Markdown plugin in use here is the O.G. Gruber Perl...
  • Commented on Profiling Perl under Apache
    <code> does not work on the bash code above (adds some colours, but renders everything in a single wrapping line with the regular font) That is the opposite of not working. 🙂 You have to use it, like you would...
  • Posted “Let Maintainers Be Maintainers” to Aristotle

    Graydon Hoare:

    […] Corporate-employed FOSS maintainers working at a firm with these [very common] “growth and novelty” incentives [… are…

  • Commented on Mojocast #4: Stash, Flash, and Sessions
    This entry was posted in 2011. As early as 2013 the site was redirecting to some post on Google Plus (remember that thing?) which has since been lost, and unsurprisingly the domain was for sale half a year later. I...
  • Commented on The first line of Perl_CGI script, env perl vs perl only, how different?
    Avoiding doing things on the shebang line is a matter of coding style and therefore subjective. There is a much more important reason to avoid -w, which is objective: it’s not at all the same thing as use warnings. Whereas...
  • Posted Template Toolkit’s DEFAULT is not too useful to Aristotle

    Quoth the fine manual for Template Toolkit:

    The DEFAULT directive is similar t…

  • Commented on This week in PSC (099)
    https://github.com/Perl/RFCs...
  • Commented on Outstanding GitHub Items
    Certainly! I didn’t mean it as any kind of discouragement at all. I’ve just been compiling this kind of query for a while, and since you’re posting about it, I thought my collection would be of interest. (It’s not 7...
  • Commented on Outstanding GitHub Items
    Way ahead of you. 🙂...
  • Commented on ChatGPT suggests new keywords for Perl
    Of course that example already works exactly as described if you use my. There is no need for let in Perl. All ChatGPT can do is generate a plausible response to a prompt. Here's a question. Were any of these...
  • Commented on How to prevent an infinite loop
    Filed as https://github.com/Perl/perl5/issues/20708....
  • Posted How to prevent an infinite loop to Aristotle

    This loop (assuming you have an /etc/passwd and may read it) runs forever:

    while () {
      open my $fh, '<:unix', '/etc/passwd' or die $!;
    }

    This loop terminates:

    while () {
      open my $fh, '', '/etc/…
  • Commented on Cannot change password
    Hi. I fixed this the other day. It was always possible to change your password using the password reset procedure, or else you could log into the MT backend and use the profile edit form there to change your password....
  • Commented on PSA: Changing your b.p.o password is recommended
    Good point. That had been reported three separate times over the years. Unfortunately those all came in during the era when learned helplessness was the attitude toward MovableType, and the fact that there was a workaround (the one which you...
  • Posted PSA: Changing your b.p.o password is recommended to Meta

    HTTPS support on blogs.perl.org, announced last month, has now undergone some additional small improvements to prevent the previously still theoretically possible exposure of session cookies in unencrypted requests.

    As such, now …

  • Commented on Good bye PrePAN
    That’s a reasonable suggestion, but also feels like it’s missing the point in a way. My sense is that whoever ran the site lost interest in keeping it online, and the registration lapsing was just a symptom of that. Moving...
  • Posted Good bye PrePAN to Aristotle

    The domain was snapped up by a squatter sometime between July and August. 🙁 What a pity, I always enjoyed those conversations.

  • Posted New feature: HTTPS support to Meta

    The site is now served over HTTPS.

  • Commented on TPF launches merch store for Perl 5
    The raptor is a Mojo creation. Incorrect. All three logos in fact go back to remarks by Larry, including the velociraptor. The earliest reference to the velociraptor by Larry that I can find is in Apocalpyse 12, where he only...
  • Commented on On interpolating stuff into pattern matches
    Yeah, this time, as I was writing a comment on your entry and it was getting longer and longer I did think that hold on, we had this conversation before. 🙂...
Subscribe to feed Recent Actions from Aristotle

  • RonW commented on The Hidden Power of Prototypes

    I agree that prototypes are a very useful tool. Try::ALRM is genuinely useful and interesting.

    I see the main limitation on prototypes being that & only coerces on the first parameter. I don't see a downside to & coercion on subsequent parameters. If the prototype says it should be a code ref, then if it looks like a block, treat it like a block, same as if the "sub" were there.

    I don't see much advantage to Dispatch::Fu. While it adds a little syntactic sugar, it's really just an indirect way to do:

    if ($cgi->param("action") eq q{foo} and $cgi->param("userid") !=…

  • The Mighty Buzzard commented on Is Perl a write only language?

    Read again, that is not what I said.

  • The Mighty Buzzard commented on Is Perl a write only language?

    Appears that way now, yep.

  • Brett Estrade commented on The Hidden Power of Prototypes

    > I don't see much advantage to Dispatch::Fu. While it adds a little syntactic sugar, it's really just an indirect way to do...

    That's the point, but it's more than sugar! The computational complexity of determining the dispatch "key" is entirely contained in the "dispatch" block and is under the control of the developer. Once the "key" is determined, the proper method is called as O(1)!

    Thanks for all to good info above, didn't know bout the "_" allowing one to default to "$_" - I was actually wondering about that recently!

  • Brett Estrade commented on The Hidden Power of Prototypes

    I am not good at coming up with contrived examples as evidenced in this Perl Advent article,

    https://perladvent.org/2023/2023-12-13.html

    But a set of cascading "if" blocks is not the most exciting example. However, any code could go in there to compute the key to then "call".

Subscribe to feed Responses to Comments from Aristotle

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.