user-pic

Nick Patch

  • Commented on How does <email>@cpan.org work?
    More and more frequently I don't receive expected mail to my cpan.org email address. In fact, the only reason it took me so long to respond is because I forgot my new blogs.perl.org password and the cpan.org spam filter was...
  • Commented on Why I Didn't Submit A Patch
    Note that \d specifically matches characters with the Unicode General_Category property value Decimal_Number (a.k.a. Nd and Digit), not everything with the Number value (a.k.a. N), and nothing with the Letter_Number value (a.k.a. Nl) which you linked to. By the way,...
  • Commented on Follow Ovid on twitter
    Ovid's button seems to work, although I'm already following him. On hover, it displays "You are following @OvidPerl on Twitter". The link from brian is just to his Twitter page and doesn't do anything fancy....
  • Commented on Release a new distribution every month in 2014
    I have a list of 77 distributions that I'd like to create (32 Lingua, 10 Unicode, 4 Regexp, 4 Test, etc.), but I'll probably release a maximum of 4 new distributions in 2014. The reason is that I need to...
  • Commented on We’re pleased to announce that Shutterstock has become...
    We list our open source projects at code.shutterstock.com. Search the page for "perl" because we have projects in other languages too....
  • Commented on A convention for Changes files
    Another standardized format that some people use, although not a standardized changelog format, is YAML. Most notably, Ingy uses it for has many distributions (for example, Test::Base). Although I've used YAML for changelogs in the past, I personally follow CPAN::Changes::Spec...
  • Commented on I translate "Modern Perl Writing Style" to English
    jnap, one important note about autodie: I wouldn't recommend using any version before v2.12, released in June 2012, because of a serious bug that prohibits its use with the open pragma, the PERL_UNICODE environment variable, and various CPAN modules including...
  • Commented on Proposal: elseif be an alias for elsif (as in foreach and for)
    If I didn't know better, this page would lead me to believe that elseif exists in Perl: http://perldoc.perl.org/functions/elseif.html...
  • Commented on shortcomings of perl
    vsespb: I'd have to disagree about this being a "special area of natural language processing" and not a "'typical' application". Maybe Thai isn't the best example because it's so foreign to most Westerners. The reason I used it is because...
  • Commented on shortcomings of perl
    john: Do you consider the topic of grapheme clusters to be esoteric? Although there's poor knowledge on the topic among programmers in general, I think it's something that every programmer who works with strings should know. I've been doing my...
  • Commented on shortcomings of perl
    Toby: I wouldn't recommend underestimating PHP. Even though the mb_* functions from 4.0.3 aren't widely used, neither is \p nor \X in Perl and these are all very important features. The fact that they exist is what's important to these...
  • Commented on shortcomings of perl
    Gabor, vsespb: Python's regex engine doesn't support Unicode properties (\p) or grapheme clusters (\X). The lack of either one is a complete showstopper for me. Ruby 1.9 at least supports \p but only for two properties (General_Category and Script) plus...
  • Commented on shortcomings of perl
    I agree about Unicode support. Perl has the best Unicode support of any language and that is the top reason I use it as an internationalization developer. I don't see any other dynamic language as a viable alternative for the...
  • Commented on function return in scalar context
    perlfunc on map: In scalar context, returns the total number of elements so generated. perlfunc on grep: In scalar context, returns the number of times the expression was true....
  • Commented on patch -p0
    What an honor! :)...
  • Commented on Improved autobox-ing. I'm loving it :o)
    You said that “(^10) is not as self-explanatory”. It’s not without understanding the fundamentals of Perl 6, like the operators, which are needed in order to program in the language or understand the code. Just like Perl 5 or Ruby...
  • Commented on Improved autobox-ing. I'm loving it :o)
    I hadn't criticized the syntax, but I do have an example of something I'm not fond of and a reason why. I find the use of chained method calls without parens to be jarring. (0..9)->grep { $_ > 5 }...
  • Commented on Why you don't need File::Slurp…
    If I recall, File::Slurp had issues with the PerlIO :encoding layer and required manual decoding of the slurped data instead, which is why I have avoided it. Not sure if this is still an issue....
  • Commented on Improved autobox-ing. I'm loving it :o)
    Fortunately, TIMTOWTDI! say (0..9).grep({ $_ > 5 }).map({ $_ * 2 }).join(' - ');...
  • Commented on Improved autobox-ing. I'm loving it :o)
    You'd probably like the Perl 6 solution: say (^10).grep(* > 5).map(* * 2).join(' - '); However, I'd put all of these options into the category of fun and elegant code that I wouldn't release to production....
  • Commented on Perl5 Census Japan 2013
    This is really interesting. I haven't used gvis before but I'll need to check it out. Thanks!...
  • Commented on Thank you Ack!
    FYI, you can optionally use \P{ASCII} instead of [^[:ascii:]] and \p{Lu} instead of \p{Upper}. The ASCII one is clearly more readable and they’re both less characters to type for one-liners. Lu and Upper are both just abbreviations for Uppercase_Letter....
  • Commented on Slideshare? Really?
    My biggest problem with SlideShare is that it corrupts Unicode characters in my PDF presentations that it doesn't understand, violating Unicode Conformance Requirement C7. This is a problem for Unicode 6.0 characters, possibly older versions too, and is most noticeable...
  • Commented on Pod to HTML
    Jakob, Joel: Additionally, I’ve read in the colophon of multiple O’Reilly books that they were written in Pod—or an extended version of Pod—and given to the publisher in that format. I’d be surprised to see this done in Markdown without...
  • Commented on Think Python, But Perl 6 - Chapter 3: Functions
    @Brian: When using fixed-width fonts, some characters may take more or less than one column to display, such as some control characters and East Asian characters. This is described in UAX #11: East Asian Width. Perl 6 doesn't have a...
  • Commented on Prototype changes across Perl release boundaries
    Why not use the \@ prototype for all versions of Perl since it continues to be backward compatible? The reason the + prototype was added was to support the new functionality of each, where the value may be an array...
  • Commented on Speaking at QCon London next month
    @Jerome: I can't imagine that most programmers in attendance actually pay for this. Many employers will cover the cost and send folks on company time. Compared with hiring a trainer or sending people to a multi-day training, the price isn't...
  • Commented on Pod::Perldoc at 3.19_01
    This is exciting news! I use non-ASCII UTF-8 characters extensively in some of my docs, especially for modules dealing with Unicode, including grapheme clusters containing multiple code points. When I use Pod::Perldoc 3.19_01 on my laptop running Perl 5.14.2 and...
  • Commented on Understanding Unicode/UTF8 in Perl
    Perl 6 syntax really helps to clarify these concepts. $str.graphs # number of graphemes $str.codes # number of code points $str.encode($encoding).bytes # number of bytes when encoded And there's also $str.chars for the number of characters in "the current (lexically...
  • Commented on Understanding Unicode/UTF8 in Perl
    In those slides, the word glyph was erroneously being used for individual code points. Generally when talking about Unicode and its encodings, the three best technical terms for different levels of things that represent characters are bytes, code points, and...
Subscribe to feed Recent Actions from Nick Patch

  • Jason commented on Deprecated not depreciated

    The transitivity of depreciated is irrelevant and not a valid defense of the use of deprecate in the context of software. You can most certainly say a module _has_ depreciated. This would indeed imply that it is not recommended. It makes perfect sense. When something has depreciated, it has lost value. The official OED definition of this word in no way prohibits its use to finance, nor is the only context in which it is used. Citing examples of this context does not further your case.

    The correct transitive verb to use here is obsolete. Again, see the OED definition. Wikipedia …

  • Jason commented on Deprecated not depreciated

    See reply below

  • Jason commented on Deprecated not depreciated

    EDIT: Meant to say "prohibits its use to ONLY finance" in paragraph one.

  • Mike Doherty commented on Why you don't need File::Slurp…

    Would you benchmark this method of slurping, which is what I typically see?

    my $contents = do { local $/; open my $in, '<', $filename; <$in> };

    Might be worth adding to https://github.com/melo/perl-benchmarks

  • Damien "dams" Krotkine commented on Why you don't need File::Slurp&#x2026;

    I like to use this for non production code :)

    my $content = do{local(@ARGV,$/)=$filename;<>};

    I don't think it's useful to benchmark it :)

Subscribe to feed Responses to Comments from Nick Patch

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.