user-pic

Ether

  • Commented on If your core perl documentation uses =encoding, please test the new perldoc release
    However, `perldoc Moose` does not -- the rendering of the right-to-left portion of Yuval's name (in the AUTHORS section) is garbled (the bullet appears at the end of the line; the parentheses are misplaced). This may be due to my...
  • Commented on If your core perl documentation uses =encoding, please test the new perldoc release
    `perldoc Acme::LookOfDisapproval` and `perldoc Acme::ಠ_ಠ` both look good :)...
  • Commented on I hate unpacking sub calls with shift
    > This one is very good: No, it's not - it uses Devel::Declare, which is a giant ball of crack that is actively discouraged by its authors and everyone who understands the improvements made in 5.14 that make this ball...
  • Commented on Data::Dumper Debugging
    I'm running OSX 10.8 and I have: GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)...
  • Commented on Rewriting Pod::Readme
    There is a MooX::Role::Pluggable, which may serve your needs. But it's also not terribly difficult to write this bit of code manually, using Module::Pluggable....
  • Commented on Single-page POD for a distribution
    We need someone to add a split-screen feature to $favourite_browser_here....
  • Commented on Rewriting Pod::Readme
    One other thing, for Robert -- unless you're doing some really funky things with Moose, I'd suggest using Moo instead, as it is lighter weight and will run faster in a toolchain environment....
  • Commented on Rewriting Pod::Readme
    I see some great ideas here! Something you might want to look at for inspiration is Mike Doherty's https://metacpan.org/pod/Dist::Zilla::Plugin::InstallGuide (which I use in my plugin bundle) that generates an INSTALL file that contains simple install instructions using various cpan clients...
  • Commented on Quacks who write software make us all look bad
    Heh, I happened to see the headline of your reddit post about 5 seconds before skimming b.p.o, and went "whoa, everybody's talking about this guy today" :)...
  • Commented on Planet Moose - August 2014
    *lol* at the easter egg :)...
  • Commented on Please don't use ::Tiny unless it meets the ::Tiny criteria, thanks!
    > Maybe make a Dist::Zilla plugin to test for it all? https://metacpan.org/pod/Dist::Zilla::Plugin::OnlyCorePrereqs can check for one part of it. [Test::MinimumVersion] can test for another....
  • Commented on Give your module a good SEE ALSO section
    Something to remember for all of Neil's excellent posts in this series - if you don't have any distributions of your own that you can patch, you can patch other people's distributions!...
  • Commented on Classify your RT tickets on CPAN Day!
    This is, IMO, a problem with a lot of distributions......
  • Commented on Curating CPAN sometimes means really deleting stuff
    > Games::Golf Interesting! From the name alone, I might have thought that this was for scoring the *real* game of golf - calculating handicaps, comparing users against par for each hole, etc....
  • Commented on Don't be afraid to rename your module / dist
    Thanks Neil! For authors of modules in the MooseX:: or MooX:: namespace: please note that this namespace ought to be used only for Moose *extensions*. If your module is simply a role that happens to use Moose to provide attributes...
  • Commented on The 'right' name for your CPAN distribution
    Great points, Neil! Also - if your distribution could be named better, why not perform that renaming on CPAN Day (August 16)? :)...
  • Commented on perlbrew on OSX
    > As always ... it was down to me doing something daft. So it is for all of us :)...
  • Commented on The ghost of CPAN Days past
    I have a Task-Kensho-* release planned soon. Challenge accepted. :)...
  • Commented on How to Run a Single Test via Dist::Zilla
    There is a Build.PL in the repository for that dist, so you should be able to simply: perl Build.PL && ./Build && ./Build test -- or just perl Build.PL && ./Build && perl -Mblib t/foo.t....
  • Commented on Moose MonkeyPatching With a Mock UserAgent
    Nice! I've definitely used method modifiers (either directly in in Moose, if it's a Moose class, or otherwise using Class::Method::Modifiers) for targeted mocking - it feels a bit ugly, but it does do the job! :)...
  • Commented on Conflict Resolution: local::lib and git's Perl
    This seems like a strange problem - e.g. I use perlbrew and local::lib extensively, and always have PERL5LIB set, but I've never had an issue with git commands....
  • Commented on Giving up on weekly neoCPANisms
    > a release that was pushed on time but indexed and put on CPAN after the deadline Werd. This upload broke my once-a-day and neocpanism-a-week chains: Request entered on: Sat, 31 May 2014 23:59:10 GMT Request completed: Sun, 01 Jun...
  • Commented on When a fat comma is confusing
    heh, I thought about having map_response and some of the other interfaces accept more parameters, so as to add multiple mappings at once, but I never implemented it because of "YAGNI" - figuring it would be pretty easy for the...
  • Commented on When a failure is not a failure
    tobyink is correct. Consider: $; perl -Mwarnings -le 'exit 1 ? 2 : 3' ; echo $? Useless use of a constant in void context at -e line 1. Useless use of a constant in void context at -e line...
  • Commented on Sick of being mocked by unit tests
    Nice post. I also loathe mocked objects nearly universally. Also, some implementations are problematic -- e.g. Test::MockObject on the CPAN has a number of implementation issues that cause me to pull its use out of any project I can. Here's...
  • Commented on Perl in a Developing Country
    Welcome! I look forward to reading more!...
  • Commented on Removing Boilerplate with Import::Into
    https://metacpan.org/pod/experimental...
  • Commented on WTF: $Test::Builder::Level is invalid
    For each of my 8 modules which use Marpa::R2, I do: local $CWD = $dir_name; ($stdout, $stderr) = capture{system 'prove', 't'}; Then I parse the output with: if ($line =~ /^Files=.+Tests=(\d+),/) Looking for a line like: Files=3, Tests=88, 2...
  • Commented on Enumerations in Moose
    Nice! I wouldn't mind at all if this became Moose::Meta::Attribute::Native::Trait::Enum. Nothing would break, and the entire ecosystem can benefit immediately....
  • Commented on One package perl pm file
    > Tricky hiding things from a not-so-smart parser isn't a good solution. This is a well-established way of signalling that a namspace should not be indexed. It's the only way to do it right in the code (without involving external...
Subscribe to feed Recent Actions from Ether

  • pumpingcode commented on I hate unpacking sub calls with shift

    Newcomers need to understand that sub call arguments are passed in an array. And to appreciate the power of arrays, a programmer needs to understand how shift, unshift, pop, push etc are array operators.

    I agree that placing a shift deep inside a subroutine is not helpful but this is more a poor coding style. One could also place a @_ on line 100 of the code.

    My five cents-it is no big deal.

  • James commented on Data::Dumper Debugging

    Toby Inkster:
    |& is only inherited from csh, |& in ksh is for co-process creation. So the reason people don't reach for it is perhaps because it is non-standard, non-portable and incompatible. And (luckily) not every /bin/sh is a /bin/bash

  • Tom Molesworth commented on I hate unpacking sub calls with shift

    $! is common enough that it shouldn't need comments, though?

    If the argument is that people learning perl won't understand them, I'd disagree:

    open my $fh, '

    tends to be covered very early in most tutorials, and is also described in perldoc perlopentut. To some extent the same applies to $/, reading in paragraph mode or in fixed chunks is something that you encounter very early.…

  • Olivier Mengué (dolmen) commented on I hate unpacking sub calls with shift

    Note also that @_ is alias to arguments given to the sub which means that it gives you not only read access to the argument, but also write access if it is a variable.

    my $a = 2;
    say $a;
    
    

    sub change_arg_0
    {
    $_[0] = 1;
    }

    change_arg_0($a);
    say $a;

  • https://openid.phys.ethz.ch/abe commented on I hate Dist::Zilla and missing Makefile.PL
    install/run/rpm-pack the module. Git copy is not suitable for this. Git copy is only for authoring (yes, and to submit patch).

    If you, as a user, need to install a git snapshot of a project hosted
    at GitHub, you can use https://undzilit4.me/ for that and you don't
    need to bother about all the plugins. It's not equivalent to "git
    clone", but you get what you want.

    btw, when packaging .deb files, Debian tools expect tarballs too. And if you try …
Subscribe to feed Responses to Comments from Ether

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 run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.