user-pic

Aristotle

  • Commented on Something New Every Day
    Sometimes it seems like everybody knows, other times I’m surprised how many don’t....
  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    should ALL hashes support locking, or would it be sufficient to have a bespoke lockable hash to use with fields.pm and Hash::Util? Given I proposed the bespoke locked hash implementation, it’s clear what I’d answer, but I’m not up on...
  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    I would imagine locked hashes would be one specific hash implementation, and Hash::Util::lock_keys would continue to work by switching the hash from its current hash implementation to a locked hash. It would be a costly operation, but nobody who doesn’t...
  • Commented on Three Sort Functions
    Do not miss Sort::Key. It’s faster and leaves the code more readable than if you try to write a faster sort in pure Perl....
  • Commented on Swapping Things
    Because this user’s posts are all written in (or possibly pasted into) the rich text editor, not as HTML or Markdown. The class="prettyprint" bit is not even necessary to add, btw. That gets inserted by the syntax highlighter automatically....
  • Commented on qk: Quote Membership Hash Keys
    I’m not a fan of either proposal, though especially not of qa(), because of how little they offer, and how easily they are replicated by just chucking a few functions into List::Util: our $cars_ref = array qw(sedan hatchback coupe); our...
  • Commented on Any module to convert 'whitish' to 'white'?
    The term of art for this is stemming....
  • Commented on You can import your Metacpan favorites into perlmodules.net!
    Excellent! That takes care of the reason I didn’t get into it before....
  • Commented on Announcing Mojolicious::Plugin::Routes::Restful
    DELETE or PUT route to a collection resource […] will give you a 404. Should be 405...
  • Commented on Fake Amazon Book Reviews Are Hurting My Book
    Most of the links are dead or largely deleted now, so I cannot test this thing against them, unfortunately; in any case, I just saw Fakespot, which, if it does what it promises even reasonably well (namely, grade reviews by...
  • Commented on Reply to David Golden "Comparison of Class::Tiny and Object::Simple"
    Sorry, I have mistake? In Past? Not in the past either. David Golden is not the pumpking now and has never been the pumpking before. Perl calls constructors and destructors in correct order if we use only single inheritance. This...
  • Commented on Do you need "Fast Perl"? Look at "Static Perl" project at once.
    There is already a thing called staticperl on CPAN… maybe pick a different name to avoid confusion?...
  • Commented on Simplest class builder "Object::Simple" 3.17 released!
    You can still see the comment if you log in. If you follow the link you will see that they offer training in the absolute basics of dozens of technologies… for several hundred dollars per course. Perl is just one...
  • Commented on Simplest class builder "Object::Simple" 3.17 released!
    Yuki: that was a spam bot. If you see a generic-sounding “wow your blog/article is great” comment with a generic link in it (or a link in the name of the commenter)… that is spam 99.99% of the time....
  • Commented on The Math::BigRat Trap
    That would make the problem go away. But it would do so by foisting Math::BigRat on everyone who installs Math::BigInt::GMP, whether they need BigRat or not....
  • Commented on Do not pass perl globals as arguments to subroutines
    I was never able to figure out exactly what was going on […but…] I have made it a practice ever since That is pretty much cargo cult by definition. 😊 Not that I can fault you for reacting the way...
  • Commented on Do not pass perl globals as arguments to subroutines
    And if you are writing the subroutine, you might want to avoid returning things like this as well, and for similar reasons. Returning a value makes a copy, so it doesn’t suffer from this problem (outside of an :lvalue subroutine...
  • Commented on PRC 2016 - Second Trimester
    And that is why I used "it seems", because I know it is not true. Culture gap I guess. “It seems” usually means “from what I can tell”, i.e. a position you are not necessarily sure about but which you...
  • Commented on Missing Smart Match
    I still believe that "is-an-element-of" is a very frequent operation and would be useful as an operator on its own Probably. (Not sure, but I’m not disagreeing.) That doesn’t necessarily have anything to do with smartmatch though…...
  • Commented on Missing Smart Match
    Let’s just fix the bugs. They aren’t bugs, they are the feature. If you consider them bugs and “fix” them, the feature is gone. The feature is simply unimplementable in Perl 5 due to the language’s set of semantics. Namely, the...
  • Commented on Missing Smart Match
    sub contains { my $str = shift; $str eq $_ and return 1 for @_; !1 } And then: if ( contains $scalar, @array ) { ... } Now your code is about as readable as it is with “smart”...
  • Commented on Why I try to avoid Perl's punctuation variables
    More seriously, global variables bad, because action at a distance bad, and to the extent that Abigail’s version of the code is less readable than other formulations I find it’s mostly owing to the distance between setting the punctuation variable...
  • Commented on Why I try to avoid Perl's punctuation variables
    my $query = <<""; SELECT foo, bar, baz FROM sometable WHERE id IN (${\ substr ',?' x @ids, 1 }) What? Oh, we weren’t golfing?...
  • 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...
Subscribe to feed Recent Actions from Aristotle

  • Zoffix Znet commented on Something New Every Day

    Note that in Perl 6, apostropes are valid parts of identifiers (with some restrictions
    on their placement), so the issue that bit OP in Perl 6 complains about
    undeclared variable `$user's` and uses Levenshtein distance to figure out that user might have meant the `$user` variable and suggests that.

  • Matthew Persico commented on Something New Every Day

    There's something to be said for braces whenever a variable bumps up against anything that !~ m/\s/:

    print "${user}'s crontab is missing!\n"

  • morandimus commented on Something New Every Day

    I partially agree, but clarity first and foremost, and I would argue that
      print "$timestamp,$username,$operation,$result\n"
    is more readable than
      print "${timestamp},${username},${operation},${result}\n"

  • domm commented on Something New Every Day

    The JAPH in my .sig is based on this feature:

    for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}
  • Randal L. Schwartz commented on Something New Every Day

    Clever!

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.