user-pic

zby

  • Commented on So, Kiev 2013
    Invite speakers from outside of our Perl echo-chamber!...
  • Commented on Stealing from Python
    I support 'in'. Checking if something is in a set is a very common operation and it is atomic to my mind. This is the way my mind works and when I need to write a grep or use a...
  • Commented on Why my()?
    I personally don't like these posts - but calling them spam is overboard....
  • Commented on I was called "fucking asshole"
    I partly agree with ribasushi above that banning a word is not a solution - if we ban 'asshole' how would we express the meaning of it when we needed it? That said I fully agree with Schwern that this...
  • Commented on The syntax of English is undecidable
    "It is a yes/no decision problem. Syntactic/Unsyntactic." - you have just shown that the for the sentence that you constructed the answer cannot be neither....
  • Commented on The syntax of English is undecidable
    I don't think you use the same definition of 'undecidable' as I was thought. Wikipedia gives this definition of undecidable: In computability theory and computational complexity theory, an undecidable problem is a decision problem for which it is impossible to...
  • Commented on On defined(@array) and defined(%hash)
    One major source of this might be Advanced Perl Programming with the following: Example 6.2: Dumping All Symbols in a Package package DUMPVAR; sub dumpvar { my ($packageName) = @_; local (*alias); # a local typeglob # We want to...
  • Commented on Breaking the Perl Debugger for Fun and Profit
    The breakpoint in a different file feature was something that I've always thought that it is somewhere and I only don't know how to invoke it - which always frustrated me. Thanks a lot for implementing it :)...
  • Commented on PPI for Mojolicious
    There is a Javascript syntax highlighter that works for Perl: http://alexgorbatchev.com/SyntaxHighlighter/ By the way I use it in https://github.com/zby/Nblog - which is a blog engine I am working on....
  • Commented on Why do you want new major features in core?
    I think that the most important rule here should be that when something is being added - then there should always be a plan how to remove it and when. Independently I have the feeling that both smartmatch and given/when...
  • Commented on The UTF8 flag and you
    A good explanation of the current status - but I wish you formulated some positive plan for all these negatives. This is something many people trip over....
  • Commented on Quick note on using module JSON
    Sorry for being rather persistent - but this is a common misconception - so I think it is important to clear it at out at the internets. forgetting to use utf8::is_utf8(), because you know that it will tell you "yes"...
  • Commented on Quick note on using module JSON
    I still maintain that $data_structure = utf8::is_utf8($json) ? from_json($json) : decode_json($json); can easily lead to crashes, even if $json is already decoded character data see my blog post: http://perlalchemy.blogspot.com/2011/08/isutf8-is-useless-can-we-have.html...
  • Commented on Quick note on using module JSON
    There is one more special case when utf8::is_utf8 says no, but you are dealing with characters not bytes - this is the dangerous case - and it is when you have characters that are internally encoded as Latin1. Because of...
  • Commented on Rethinking smart matching
    Nobody yet mentioned: http://search.cpan.org/~leont/Smart-Match-0.003/lib/Smart/Match.pm I, for one, really like this more explicit approach....
  • Commented on When do you upgrade perl?
    The poll should be at least split to work and personal projects....
  • Commented on dip.pm: Dynamic instrumentation like DTrace, using aspects
    Nice! One question about this: For example, if you simply wanted to know which kinds of objects have been instantiated at least once, you could use: before { $c{total}++ } call qr/::new$/ and then %c will be dumped. where does...
  • Commented on Failing your way to success with A/B Testing
    @aristotle - if you use A/B testing with only small steps then you can be stuck with local minima - but you can always guess the global minimum and then A/B test it with other solutions. Since the opposite to...
  • Commented on The 1% Testing Solution
    Judging by the tests on CPAN you are preaching to the choir here :)...
  • Commented on And the fastest OO accessor is...
    You should check App::Benchmark::Accessors - it's tests output a benchmark table so you can see the benchmarks in many Perl versions and OSes. For example: http://www.cpantesters.org/cpan/report/cd1a6aa6-2a9b-11e0-aaf8-39cd950acfcc...
  • Commented on A Novice Refactors
    A propos passing by parameters - the advantage of using this style is that it's easier to test stuff. This is the basis of the Dependency Injection idea....
  • Commented on Your Fantasy Perl Conference schedule
    I think that the format well suited for comparisons would be a panel discussion, with maybe a few short introductory presentations. Recently we (warszawa.pm and Polish Linux Users Group) did a cross-language (Java, C++, Perl, Python) panel discussion on Dependency...
  • Commented on Architectural Review Board - Please visit my project!
    The alternative to globals is passing everything by parameters - i.e. Dependency Injection. I recommend all the writings by Misko Hevery on this subject: http://misko.hevery.com/....
  • Commented on Portable plugin apps?
    A propos that 'user system' - what do you think about my latest experiment: https://github.com/zby/Plack-Middleware-Auth-Form...
  • Commented on Portable plugin apps?
    This is something recurring over and over and it evidently it is extremely difficult to get right. Drupal manages to get there by being a monolitic framework and dictating how everything has to behave. I am convinced that there is...
  • Commented on Perl and Parsing 7: Do List Operators have Left/Right Precedence?
    Interesting - but is join an operator? 'perldoc -f join' finds the documentation - and this suggest that join is a function. So the example is in fact equivalent to: say join ';', $a = f(1), $b = join( ',',...
  • Commented on Some nifty things you can do with Catalyst on Plack
    The other nice thing about it is that your extensions and tricks are reusable in all Plack based frameworks....
  • Commented on Plack - give it a go... and white paper
    It would be great if you posted your config somewhere - the problem with HTTPS on the dev box is a major set back for me. After the recent commotion with firesheep HTTPS is a must for virtually every web...
  • Commented on Plack - give it a go... and white paper
    There still is one thing that you need Apache for: HTTPS....
  • Commented on Why I Stuck With Perl
    I wish more people register the regression testing project - there is nothing else like it! By the way here is Andreas blog post about it: http://blogs.perl.org/users/andreas_konig/2011/01/guess-who-has-written-401-rt-tickets-in-2010.html , apparently the regression data is available at: http://analysis.cpantesters.org/ for everyone to browse....
Subscribe to feed Recent Actions from zby

  • RyanMK commented on Why I Stuck With Perl

    Didn't you first write Marpa in TCL?

  • Jeffrey Kegler commented on Why I Stuck With Perl

    I did write a parser, which I also called Marpa, in TCL, some time ago. (Parsing has been an interest of mine going back even further, to the 70's.) I never looked at the code for the TCL 'Marpa' when writing this one -- the current Marpa is the result of a totally fresh start that I made in 2007.

    By 2007, the TCL Marpa had disappeared, and I felt I could safely reuse the name. I still liked the idea of naming a parser after Marpa the Translator, whose story has long inspired me.

  • stevemadden commented on On defined(@array) and defined(%hash)

    Hi Reini, hi all, very sorry to jump in that way, but even after reading this articles many times I can't find a way to solve my pb with defined.

    with perl 5.10 , defined does the trick, but now I updated to 5.16, my script is broken.

    My script take a hash of hash and dump its archite…

  • gonzo commented on On defined(@array) and defined(%hash)

    blogs.perl.org is a blogging platform, no support forum. You should generally consider to ask questions on other platforms, like stackoverflow or perlmonks.

    To determine of what type a reference is (in Perl5 all nested data structures consist of references) you need to use the "ref" builtin (see perldoc -f ref or here: http://perldoc.perl.org/functions/ref.html ).

    I took the liberty of rewriting your code a bit, so it conforms to recent best practices a little more:


    sub dump_hash {
    my ($hashn…

  • https://www.google.com/accounts/o8/id?id=AItOawlcDTR-3XTXKJMjOd9EuTjv2gGqrZeSUEE commented on Rethinking smart matching

    You say "time to go the way of pseduohashes." Pseudohashes were removed because they slowed down Perl not because they made the spec too hard for a few simple minds to codify.

Subscribe to feed Responses to Comments from zby

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.