user-pic

Aristotle

  • Posted The perversity of traditional Perl 5 dereferencing syntax to Aristotle

    I wrote this article almost a year ago as part of an omnibus reply to a bunch of different posts from a perl5-porters thread. I never finished all parts of the reply and thus never sent this part either, but in contrast to the other parts of this stillborn mail, I think this one is worth reading.…

  • Posted To the tune of… to Aristotle

    Buddy Burden:

    Yes, we had multiple keynotes [at…

  • Commented on Changes to Test::Builder/More/Simple incoming
    So what is the future of Test::* now? (Maybe a separate entry about that?)...
  • Commented on mop problem 5 - Role and C3 searching is not always necessary
    Multiple inheritance is bad, yes. But, why? Can you explain? (I don’t mean to me. Just think about it.) Once you have done that, think about how roles work – or if you don’t know, find out. Then consider: can...
  • Commented on Deprecated not depreciated
    First of all, pay attention to the usage examples in the very definition you quoted: “he deprecates the value of children’s television”“the pound is expected to depreciate against the dollar” “To depreciate” is intransitive; “to deprecate” is transitive. Depreciating is...
  • Commented on "Functional core & Imperative shell" : OO design, and isolated tests without mocks
    Other than an unreliable external service, why mock anything up? Ovid, I linked you Gary Bernhardt’s Test Isolation Is About Avoiding Mocks in your own comments already – you really ought to read it. The (here deliberately over-summarised) punchline is...
  • Commented on Sick of being mocked by unit tests
    One of the better articles I’ve read in this back&forth: Gary Bernhardt: Test Isolation Is About Avoiding Mocks...
  • Commented on On prototyping in public ... the long version
    You have looked at the guts of Perl 5 right? Oh I won’t call it well written, believe me. :-) I’ve tried to patch it at times, succeeded with trivial stuff outside the interpreter guts, and I’ve read others’ patches....
  • Commented on On prototyping in public ... the long version
    I’m also struck by how much this whole journey mirrors the programmer’s usual reaction to trying to read someone else’s code: “this sucks, I’ll just write it from scratch myself.” :-) Anyway, I’m anxious to see where you take it...
  • Commented on On prototyping in public ... the long version
    I cannot resist saying “I told you so” about Moe. :-) The thing is, no matter badly the backward compatibility constraint sucks, you absolutely need it to succeed. If you remove it, you basically become Perl 6 – not in how...
  • Commented on OT: PLOS ONE Has an RSS Feed
    It is in fact Atom. No one cares though. Not on the reading end. (On the publishing end, you ought to pick Atom, because most versions of RSS have many inherent ambiguities. On the aggregator developer end, you are left...
  • Commented on Statistics for perl hash tables
    It's just sad that I cannot read about the rationale and possible attacks which lead to some design decisions which really look crazy, not to say stronger words, from the outside. If don't publish that, you'll need to live...
  • Commented on \r, \n, and ... \R ?
    However hard it may be, I do hope that one day we get a pause-and-ask-for-more mechanism in the regexp engine…...
  • Commented on Custom DBIx::Class ResultSets
    Oh right, you’re writing a game. I forgot.You probably want to be aware of the entity, component, system pattern. Here is an explanation that made sense to me (via Wayback Machine as the blog is currently offline).Squinting at your game...
  • Commented on Do not use each
    Yeah, the rule is to use each only if nobody else anywhere is looking at the hash. You got a hash passed in? Don’t use each. You’re passing the hash to anyone? Don’t use each. If you’re looping over the...
  • Commented on Damage control is not quality assurance
    Yes, holding the event in a hotel is an excellent suggestion.I remember YAPC::EU 2010, whose venue was a hotel. Many of the attendees stayed in that hotel, and the advantages you mention apply are all on the mark. And as...
  • Commented on Perl::QA Hackathon in Lyon - Day 1
    Presumably https://github.com/Ovid/tap-stream/commits/master/dist.ini will lead you to what you’re after....
  • Commented on A Simple dist.ini for Dist::Zilla
    I think instead of “git status --porcelain | grep 'M Makefile.PL'” you just want “git diff --quiet Makefile.PL”. Also, the way you’ve written the command line, if the grep succeeds but the git commit exits non-zero, it will claim “Makefile.PL...
  • Commented on Test::More - New Maintainer, Also stop version checking!
    Can’t wait to read what the new roadmap is....
  • Commented on Precision Testing for Modern Perl
    Except so is Perl itself…...
  • Commented on Subroutine signatures in Perl are long overdue
    (Oh and btw, in case my comment seemed berating – it wasn’t supposed to be, not exactly: I was myself one of the people who, in a previous round, thought a minimal signature proposal really can’t work without just that...
  • Commented on Extracting values from a list of (key, value) pairs
    I wonder how idxa performs if you add a $#v = $#N / 2; before the loop....
  • Commented on Subroutine signatures in Perl are long overdue
    I honestly don't know why it's taken this long to even have them experimentally in the core. Yeah? Well I know. And Ross Attrill said it: Many of these modules seem to have many more features than the 5.19 proposal....
  • Commented on I bought a weekly round for my friends
    As far as Flattr is concerned - I do not like its "american-centric" everyone-participating-gets-an-equal-prize idea. It was made for a completely different use case than yours – it only does one-time donations, not recurring ones. It’s for buskers on the...
  • Commented on "You and your ilk are a tiny minority trying to impose your opinion upon the majority who actively and vocally disagree with you."
    BrowserUk…...
  • Commented on Downloading age-restricted videos from YouTube
    Last I knew it only sort-of worked fine. I had looked at his code to potentially steal the solution for mine, since I maintain mine actively too – I rely on it daily, so I notice and fix any breakage...
  • Commented on blogs.perl.org security breach
    Well a move has been in discussion for a very long time. The problem is that while all of four us running b.p.o want to get off it post haste if possible, none of us has the slack to make...
  • Commented on Downloading age-restricted videos from YouTube
    Odd. You may want to try my own tool for the purpose, which has never had an issue with downloading age-restricted videos even without any login credentials. (Though it has to be noted that it cannot download those videos which...
  • Commented on Here we go loop de loop
    Joel: if $a < $b doesn’t always hold, then the subsets can overlap, which cannot be produced from a single part pass – so your version is broken and the original is necessary. If it does always hold, then your...
  • Commented on Here we go loop de loop
    Funny, there are other things that could be improved. For a start, the $not_used is unnecessary, you can just write it like this: my (undef,$sub_set_a) = part { $_ <= $a } @set; my (undef,$sub_set_b) = part { $_ >...
Subscribe to feed Recent Actions from Aristotle

  • Ovid commented on mop problem 5 - Role and C3 searching is not always necessary

    Roles are not multiple inheritance at all. In multiple inheritance, you're overloading class responsibility with code reuse and you introduce ordering problems (which C3 mitigates but does not solve).

    Roles leave responsibility to the classes, but handle the code reuse. Further, unlike inheritance, they don't have ordering issues, ambiguities become compile-time failures, and they can be mixed and matched in any order without breaking (well, that's actually traits; Moose roles miss a few objectives here, but only in corner cases). I strongly suggest you read up more about ro…

  • Stevan Little commented on mop problem 5 - Role and C3 searching is not always necessary

    C3 will not be part of the MOP, it is part of the core of Perl already, it will be possible for a user of the MOP to use C3 just as it is possible for a user to do that with regular Perl OO.

    Roles are not multiple inheritance and in the MOP will not be implemented with multiple inheritance. You should do some reading up on Roles and how they work, I fear you do not understand them well enough.

  • Samuel Kaufman commented on Changes to Test::Builder/More/Simple incoming

    Devel::Confess t/leak.t dies too with 'Unknown option: Can't prevent leaks without Scalar::Util::weaken at /home/skaufman/perl5/lib/perl5/Test/Builder/Provider.pm line 200.'

  • exodist7 commented on Changes to Test::Builder/More/Simple incoming

    Samuel,

    The problem there is with the test, not Test::Builder, though the changes in Test::Builder exposed the bug. Basically Test::Builder is getting these args:

    $VAR1 = [
    'tests',
    3,
    'Can\'t prevent leaks without Scalar::Util::weaken'
    ];

    The problem is here:

    4 use Test::More
    5 defined &Scalar::Util::weaken ? (tests => 3)
    6 : skip_all => "Can't prevent leaks without Scalar::Util::weaken";

    that turnary is incorrect. The difference is that now Test::More keeps processi…

  • exodist7 commented on Changes to Test::Builder/More/Simple incoming
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 run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.