brian d foy

  • Website:
  • 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).
Subscribe to feed Recent Actions from brian d foy

  • Olaf Alders commented on Mocking a User Agent

    I set up some mocking for PayPal's ancient PaymentsAdvanced API. It works with Test::LWP::UserAgent, but you can also just fire it up as a standalone service (it uses Mojo) to run queries against.

    It's one example of how to go about this, but hopefully you'll never have to use it. ;)

  • Zoffix Znet commented on Perl6 module namespace

    The error you're making is you're assuming Perl 6 module names function exactly like in Perl 5.

    In Perl 5, the module names are unique identifiers and, to a large extent, the descriptive, searcheable name of a thing.

    In Perl 6, the ambiguity among multiple 'Chess' modules is resolved with the :auth adverb and `tags` key in the META file addresses the issues about finding modules you raise.

    In fact, I'd argue that your post is suggesting we repeat Perl 5's mistakes and release modules with wordy names to rectify the problems that no longer exist.

  • Enkidu commented on Perl6 module namespace

    Wow! Let me just try and process these comments to see if I've learned something.

    I'm not too bothered about it being a decentralized project. I can see the merits in growing the Perl6 namespace organically to find out what works and then doing some retrospective cataloguing to fix problems. The tags give you that extra dimension so that your hierarchy can be shallow and allow easy code migration, but adds a bit of "need-to-know" tricks to get the right module when you'd ideally want to just use HTTP; with the caveat that it will bite you in the ass someday. Perhaps t…

  • Zoffix Znet commented on Perl6 module namespace

    > but trying to find out about them was tricky

    It's documented in the S22 speculation, I believe:

    > use Mail:approved-by('LWALL')

    That's not at all what I was talking about. The distribution's META file has a tags field that let any "distribution accumulators" (such as a CPAN site) to use those tags when trying to figure out what the user wants to find. Just like the posts on this website can be tagged with say, 'Perl 6' tag, and then searching for 'Perl 6' would bri…

  • elohmrow commented on Perl 6: The Next Node.js, Done Right

    so something like:

Subscribe to feed Responses to Comments from brian d foy

About 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.