user-pic

Aristotle

  • Posted The Coro situation to Aristotle

    Since my recent participation at the QA Hackathon I have become aware that rather more people than I expected do not know the specifics of this situation. Fewer than I expected have heard of it at all, even, although there appears to be some general awareness at the “something happened with…

  • Commented on Test2/Test::Builder Update from the QAH
    Maybe I don't understand what you and Leon wanted to happen. Yes, sorry, I’ll be publishing a long-form, detailed version of the proposal very soon. I’ve realised the proposal is (either largely or entirely) non-understood – the abridged version I...
  • Commented on Test2/Test::Builder Update from the QAH
    For TCM to work with Test2, every single module you use to output tests must also use Test2. This, however, I will call unqualified nonsense. Let me demonstrate to you why: Test::More will not be changing at all. Yet it...
  • Commented on Test2/Test::Builder Update from the QAH
    The 'explicit opt-in' approach works only until people start porting existing extensions on CPAN, which a number of Test:: authors have expressed an interest in, and then users would see far, far weirder breakages than what we're currently doing is...
  • Posted A very stupid, over-clever scoping-based importing trick to Aristotle

    In some code I’m working on, I use a module which exposes a whole bunch of package variables as part of its public interface. It does not export them, however. I could refer to them directly by prefixing them all with Some::Module::, but that would be ugly and…

  • Commented on Test2/Test::Builder Update from the QAH
    Facts will now be the judge of those beliefs. (Not the degree of agreement. Not the level of respect. Not the tone of the discussion.)...
  • Commented on Test2/Test::Builder Update from the QAH
    I think the final decision does accurately reflect all the concerns that were raised and the preparations made to mitigate them. The point is to address, not necessarily to accept. I do believe issues were thoroughly and respectfully addressed with...
  • Commented on Private Moose Attributes
    I think this is what you’re after: has request => ( is => 'bare', isa => 'Catalyst::Request', trigger => sub { my ( $self, $value ) = ( shift, @_ ); # extract and store country, language, etc here ......
  • Commented on Upping minimum version for Devel::Cover
    So the question to ask is not: "who is still using 5.6.1 for production code" but "who is developing on 5.6.1 and has only 5.6.1 available on that machine?". So you check code coverage on e.g. 5.22 on your dev...
  • Commented on The Perl Toolchain: PAUSE and CPAN
    Sounds like local::lib to me, not Perlbrew/Berrybrew....
  • Commented on Upping minimum version for Devel::Cover
    That approach privileges the wants of a hypothetical user over the needs of a very real library author. It does? By which mechanism?...
  • Commented on It's never too late to find a bug
    That’s terribly over-clever for my taste. I’d probably just go with the boring approach: my ( $r, @v, @o ) = shift; push @{ ref eq 'HASH' ? \@o : \@v }, $_ for @_; my $v = shift @v;...
  • Commented on More on YAML, syck looks much better
    If the dude writing on that domain now is _why, I’ll eat a straw broom....
  • Commented on Not so new shiny things: LWP::Protocol::PSGI
    [Note also my Plack::Middleware::MockProxyFrontend, which is the same idea in a different context: instead of making every LWP request go to your PSGI app, it makes every request from your browser go to your PSGI app – no matter which...
  • Commented on Alien::Base and Module::Build
    The modules that have configure_requires of Alien::Base are simply wrong. How many are there? If there are only a handful, then OK – I guess we can eat the breakage and move on. But, maybe we still shouldn’t. And if...
  • Commented on Alien::Base and Module::Build
    Can I try to change your mind? The Alien::Base stuff already on BackPAN is never going to be fixed; how about making an Alien::Base::Core (or some such) instead, for the installer-independent logic, and then Alien::Base::MakeMaker for the new EUMM stuff....
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    Meanwhile the way I actually need it to work right now is not even an option. :-) […] I see how to work around it, thanks to your continued efforts to enlighten me. You’re aware that sentence 2 there directly...
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    Another try: Then (?: and (?= would mean the exact same thing. Wait ... what? I don't follow that at all. A(?:B) means an "A" followed by a "B." A(?=B) means an "A" followed by a "B," except don't include...
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    Why, "AC" of course. If tell you to match "ABC" but leave the "B" out, what else could you possibly get? And what would @- and @+ contain?...
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    That surprise is ignorance leaving your mind. :-) Please do yourself a favour and read Mastering Regular Expressions. You seem to have a mistaken mental model of how regexps work; that book will beat you into shape....
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    A(?=B) means an "A" followed by a "B," except don't include the "B" in the match string. I'm not sure how the consecutive-ness of anything would impact that. Then if you could write 'ABC' =~ /(A(?=B)C)/ and have it match...
  • Commented on A Date with CPAN, Part 6: Time Won't Give Me Time
    if two consecutive zero-length tokens need to match, they must both match at the same point? Yes. Consecutive tokens should match consecutively, it seems to me, regardless of their length. That wouldn’t make any sense. Then (?: and (?= would...
  • Commented on A Naïve SQL Shell
    If you can install modules, DBI::Shell and you’re done....
  • Commented on Python is The New "Write-Only, Linenoise" Language
    my @list1 = 'a' .. 'h'; my @list2 = <x y>; my $n = 3; # (where did this go in your translation?) say flat roundrobin @list1.rotor($n - 1, :partial), @list2;...
  • Commented on Python is The New "Write-Only, Linenoise" Language
    ['a', 'b', 'x', 'c', 'd', 'y', 'e', 'f', 'g', 'h'] […] # OUTPUT«a x b y c d e f g h» Uhm, you did notice that “a b x c d y” is not the same thing as...
  • Commented on Python is The New "Write-Only, Linenoise" Language
    say join '', (u.comb Z l.comb) You can also do either of these: say [~] (u.comb Z~ l.comb); say [~] flat (u.comb Z l.comb);...
  • Posted Perl&#160;6 to Aristotle

    Wow, you people.

  • Posted Making local::lib real easy to use to Aristotle

    In bash, at least.

    Just paste this (on your command line or into .bashrc or wherever else you want):

    perl-lib() { eval "`perl -M'local::lib @ARGV' - "$@" 0<&-`" ; }
    

    Then you can just say things li…

  • Commented on Test::More: Clearing up some confusion
    Test::More is not changing in any significant way. I am aware that you say this in response to people freaking out about you supposedly changing the stuff in Test::More. And if you do have no changes planned in Test::More (and...
  • Commented on In “Cede Your Soul”, an episode of a tv show called “Blindspot”...
    But can you orbiculate your ideas if you ovoid that aspect?...
Subscribe to feed Recent Actions from Aristotle

  • blog.urth.org commented on Test2/Test::Builder Update from the QAH

    Several people have suggested making Test2 opt-in, but I don't see how that could possibly achieve anything of value.

    I work on two test modules that will greatly benefit from Test2. These are Test::Class::Moose (TCM) and TAP::Formatter::TeamCity (TeamCity).

    Neither of these modules would see much (if any) benefit from an opt-in approach.

    When using TCM, you need to use other test modules like Test::More, Test::Fatal, etc. to actually do any testing. TCM is essentially a harness, but it doesn't provide the low-level "is this the expected value" type testing pieces.

  • Leon Timmermans commented on Test2/Test::Builder Update from the QAH

    I think most of the discussion on that table, as well as here, was about the wrong question entirely. As such

    The fundamental question is "it is better to have a united or a split ecosystem, and for whom".

    For the end-users, a split is clearly the less risky option, and there doesn't seem to be any direct advantage to them in keeping the ecosystems unified. On the short term I only see negatives, though on the long term there may be positives (if Test2 manages to give better reporting, and harnesses catch up to it).

    For module authors, a similar thing applies: No shor…

  • blog.urth.org commented on Test2/Test::Builder Update from the QAH

    Leon Timmermans said:

    For the end-users, a split is clearly the less risky option, and there doesn't seem to be any direct advantage to them in keeping the ecosystems unified.

    I think the advantage for end users is that they can use things that test module authors produce. For example, with the TeamCity formatter I referenced in my earlier comment, it is nearly impossible to make a better version in the current ecosystem. Parsing TAP is incredibly painful, because TAP sucks (I need to write a blog post on this) and simply doesn't have enough information in i…

  • blog.urth.org commented on Test2/Test::Builder Update from the QAH

    Aristotle said:

    Thus the claim that Test modules would have to be written specifically against Test2, in order to be able to work with other Test2-based modules, is simply factually incorrect.

    That wasn't what I was trying to claim. Maybe I don't understand what you and Leon wanted to happen.

    My point was simply that Test2-using tools will not cooperate with code that uses the existing pre-Test2 Test::Builder. Of course, if Test::Builder is using Test2 under the hood, then tools using Test::Builder do not also have to change (but AFAICT no one is say…

  • Chad 'Exodist' Granum commented on Test2/Test::Builder Update from the QAH

    One of the initial options discussed as early as last year was this:

    Test2 and Test::Builder remain separate. Tools pick one a build with it. To use both together you load a shim such as Test2::Legacy, which replaces Test::Builder with the alternative guts.

    This was the alternative being discussed in the Test2 meeting on day 1 of the 2016 hackathon. We decided it was not the right plan. My main reason for opposing this plan is that nothing stops people from updating old modules to use Test2, and also auto-loading the shim to insure they do not break things that depend on them…

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