user-pic

Darko Prelec

  • Commented on Which code to read?
    I like reading Perl code, and these are just random examples I recently examined: https://metacpan.org/release/Net-Server (great stuff inside, how to handle processes, etc), https://metacpan.org/pod/List::Gen (this is when you're bored and want some WTF moments :)), https://metacpan.org/pod/HTML::Template (pretty dense code inside,...
  • Commented on MooseX::Types::Structured - how I detest thee!
    It seems you haven't initialized full type structure. For eg.: $thingy->payload([ { some_id => 10, another_id => 1, some_colour => 'blue', yet_another_id => 1 }]); This works :)...
  • Commented on First Edition
    Programming Perl is great! Is there any chance of a new edition in the not quite distant future?...
  • Commented on DB::Pluggable::Dumper on Github and CPAN
    @Ovid: I just saw this new release: http://cpansearch.perl.org/src/MARCEL/DB-Pluggable-1.101050/Changes . You guys are pretty fast in killing bugs :)...
  • Commented on DB::Pluggable::Dumper on Github and CPAN
    Thanx! It works great. I'm using it all the time now. There's a small warning at the startup though: "Subroutine DB::eval redefined at /home/local/apps/perl-5.10.1/lib/site_perl/5.10.1/DB/Pluggable/Dumper.pm line 38."...
Subscribe to feed Recent Actions from Darko Prelec

  • brian d foy commented on First Edition

    I think this was the first book ever published about Perl. I can't find anything earlier.

    Another fun fact, though: the title of the first edition is Programming perl, with a lowercase "p".

  • a casual coder commented on First Edition

    Thanks for the comments. No this girl is not nuts! I may be a klutz at programming but with books I know my stuff :)

    brian d. foy is correct, 'perl' is with a lower case 'p' and I am certain that it is the first perl book ever.

    Amazon is not the best choice for used books. Check out abebooks.com where you will find nice copies at a fraction of the prices quoted on Amazon, although only one has the nice little 'Quick Reference Guide'

    Anne
    (group leader za-pm for her sins)

  • Chisel commented on MooseX::Types::Structured - how I detest thee!

    Darko, I know what causes the error in my simple example. I created the simple example to demonstrate that the error message (still) isn't as helpful as it could be for larger/more complex structures.

    Ideally I'd like something that told me what field is invalid, and maybe the incorrect value passed to it; or a list of fields that are missing data and are not optional.

  • Toby Inkster commented on MooseX::Types::Structured - how I detest thee!

    Late response, but see Types::Standard's errors.

    (I used Moo instead of Moose for the example because throwing exception objects for type constraint violations breaks in Moose; Moose stringifies the exception object, which means we can't call the lovely "explain" method on it.)

  • gvl commented on Which code to read?

    I like to read code by Tokuhiro Matsuno. It's very cleanly written and there are indeed things to discover inside. I started by doing some source diving on SQL::Maker in order to figure out how to compose certain queries and ended up contributing to documentation. It's certainly more rewarding than just reading code, especially when the author is not a native English speaker.

    Also, reading David Golden's code was particulary insightful. It's not overly verbose, not necessarily self-documenting but it's almost always well commented, not always easy to understand but it looks efficient…

Subscribe to feed Responses to Comments from Darko Prelec

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl with a graphic design donated by Six Apart, Ltd.