user-pic

brian d foy

  • Website: www.theperlreview.com
  • About: I'm the author of Mastering Perl, and the co-author of Learning Perl (6th Edition), Intermediate Perl, Programming Perl (4th Edition) and Effective Perl Programming (2nd Edition).
  • Commented on Missing Smart Match
    I think I mentioned the drawbacks to your case in Rethinking smart matching. You don't know what's going to happen in that smartmatch until you actually get there and know what sort of values are in scalar and array. It...
  • Commented on Perl 6: The Next Node.js, Done Right
    PAUSE has removed modules in a similar situation before, even with responsive authors. But PAUSE has the same feature: an author can remove all of their stuff at their own discretion....
  • Posted The Lyon Compromise on Perl version formats to brian d foy

    I fixed some tests in Module::Release because I supported v-strings and dev versions at the same time. Even though I don't use v-strings, the module would recognize v1.2.3_1.

  • Commented on ...but which one is easier to learn?
    Actually, Learning Perl never split. Intermediate Perl was the re-titled Learning Perl: Packages, References, and Modules. That book covered Perl 5 features that Learning Perl, a Perl 4 book, didn't....
  • Commented on Perl6 module namespace
    Sometimes the taxonomy makes sense, and sometimes it's just annoying. That someone understands what the module does and how it relates to other modules should be the most important thing. A Chess module for games of Chess uses the most...
  • Commented on Mocking a User Agent
    I had a production project like this so I actually implemented the service as a Perl program. I'd start the server and test against it. It returned canned responses, but that was good enough. I did this in mojobake to...
  • Posted The White Camel Awards, 2015 Edition to brian d foy

    white_camel_2015.pngThe White Camel Awards recognize outstanding,…

  • Posted Nominate Perl heroes for the 2015 White Camel Awards to brian d foy

    We're looking for nominations for the 2015 White Camel Awards that recognize significant non-technical achievement in Perl and its community. Each year we recognize work in the broad categories of community, advocacy, and user groups.…

  • Commented on List::Slice - Slice-like Operations for Lists
    This is really cool (and simple)—I didn't expect it to be XS. Maybe you could write about this module for PerlTricks! The very simple glue code could be a nice introduction to XS. I don't think David has any articles...
  • Posted Creating a registry of environment variables to brian d foy

    I want a registry of environment variables. If I see someone using one, I want to know what it does and what code or programs uses that. Or, given a program, what are all the variables that might affect it?

    Rather than do the whole thing, I let myself do part of the first bit. I crawled a…

  • Commented on CPAN authors and Gratipay 2.0
    I think I'm more confused after reading that issues thread than when I started....
  • Commented on Anonymous Classes With Private Data
    Huzzah. I was talking about this idea at lunch today, although I didn’t know anyone was doing anything about it. I’d really like to have even named classes in a variable. Here’s some ridiculous syntax to load a particular version...
  • Commented on Dispatch Tables
    I cover dispatch tables in Mastering Perl along with other such subroutine tricks. :)...
  • Commented on Converting glob patterns to regular expressions
    A * might be inside [...], which would be like Perl's character classes. In that case, you want to leave it alone. :)...
  • Commented on Raise hell, or bugs, on CPAN Day!
    That's August 16 (Sunday), the day we recognize that skynetCPAN came on-line....
  • Commented on My CPAN Cleaning, Day 2457023.500000
    I have the password for the ADOPTME account because it's actually mine....
  • Posted "Become a CPAN Author" at MiniConf in NYC, June 6 to brian d foy

    I'll be leading my "Become a CPAN Author in Three Hours" workshop on the morning of Saturday, June 6 at MiniConf in New York City. This is our replacement for the

  • Posted Mojoconf is cancelled; I'm scrambling to do something anyway to brian d foy

    MojoConf has turned into MiniConf, with a social meeting on Friday, June 5 and a full day of Perl activities on Saturday, June 6. I'll give my "Become a CPAN Author in Three Hours" workshop on Saturday morning.



    It looks like Mojoconf 2015 is …

  • Commented on A quick static file webserver
    The render_static was deprecated in the middle of the Mojolicious 5 evolution and is now reply->static: #!/usr/bin/env perl use Mojolicious::Lite; use Cwd; app->static->paths->[0] = getcwd; any '/' => sub { shift->reply->static('index.html'); }; app->start;...
  • Posted I broke plenv and cpanm, and the systems they run on to brian d foy

    I didn't break them myself, but the Perl Power Tools project that I revitalized did. Well, that's not even strictly true. The Perl Power Tools, which install thin implementations of common Unix tools, highlighted a problem with the idea of tools such as…

  • Posted Huh. Multiple beginning-of-line anchors work to brian d foy

    I've never had a reason to use…

  • Commented on Rebuilding Cleveland Perl Mongers
    There are lots of possible guest speakers a medium train ride away, and I'm sure many of them would come out for just travel expenses. :)...
  • Commented on Promoting your Perl workshop or conference?
    In all of my years helping to promote events, I've grown comfortable with the idea that as the person publishing the magazine, newsletter, or whatever, I have to be the one to discover and research it. The journalism role is...
  • Commented on Semantic POD
    I wonder how pod could tell the pod translator which formatter to use. Like: =encoding utf8 =translator Pod::Semantic ... This could then pick up whatever you wanted to do with the Pod. There's a way to do this from the...
  • Commented on Are you the one person left on the planet using a Palm Treo?
    I think Chris Nandor still uses his Newton....
  • Posted What could a reddit bot do with feedback? to brian d foy

    David Farrell is conducting some Reddit experiments with his Perly::Bot. Through the _perly_bot user, he automagically injects things into the Perl…

  • Posted CPAN Cleaning Day 2457044: Compiler::Lexer to brian d foy

    In my quest to clean up my CPAN distributions and to normalize them, I've been working on CPAN::Critic, my unreleased tool that looks at my directory and complains about things I don't like. That's going nicely for the most part, but I ran…

  • Commented on What should be in a CPAN distro README?
    Having a README doesn't make it useful, and I doubt many people actually read what we provide, especially when so many better resources are available....
  • Commented on Can you provide an x/y Point class in other languages?
    I think Damian makes the mistake most people do when criticizing a language. They conflate the language itself with the stupid libraries and idiotic ecosystem. It's not the syntax and design of the language that makes it so and I've...
  • Posted What should be in a CPAN distro README? to brian d foy

    Most of my READMEs are lame. I have stuff that no one will really ever use. As I'm cleaning up my distros, I starting thinking about what should be in there. To do that, I have to think about the people who would read such a thing.

    A long time ago in an internet far, far away, RE…

Subscribe to feed Recent Actions from brian d foy

  • Ether commented on Missing Smart Match

    Also note that the 'any', 'all', 'notall', and 'none' interfaces are now in List::Util, which is shipped with core perl. (You should depend on version 1.33 to ensure you get an upgraded version on earlier perls that shipped an older version.)

  • Aaron Priven commented on Missing Smart Match

    The construction any(@a) eq $x is just not as comprehensible as $x in @a, even if it does the same thing.

  • Graham Knop commented on Missing Smart Match

    I don't find

    $x in @a
    very comprehensible because it isn't obvious how it will be comparing elements. Will it use string equality or numeric equality? What if you need to pick one or the other?

  • Flavio Poletti commented on Missing Smart Match

    Didn't know about Syntax::Keyword::Junction, that's what you get when you stop to the first module that fits the requirements :). It would be good to have some hint in the Perl6::Junctions docs, anyway, because it seems "more popular" with two reviews and a few more ++'s. Maybe even a new comment would do the trick?

    The new subs in List::Util are OK but they (understandably) follow the syntax of the rest, which is less sugary. This seemed to be an important point in the OP. How much sugar you like is a matter of taste, of course.

    I agree with Graham Knop and I consider any(…

  • Aaron Priven commented on Missing Smart Match

    $x in @m and $y ~> @n are analogous to and just as comprehensible as $x eq $m and $y == $n.

Subscribe to feed Responses to Comments from brian d foy

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.