user-pic

Toby Inkster

  • Commented on The not-so-great escape
    " should probably be escaped too, in case the text is going to appear in an attribute value. But just use HTML::Entities and forget about manually doing everything with regexes....
  • Posted Because CPAN Needs More Templating Modules to Toby Inkster

    Why learn a whole new language for templating when you already know a perfectly good one? This isn't the first module that allows you to embed Perl in your templates, but it's yet another one.

  • Posted Type::Tiny 1.2.0 Released to Toby Inkster

    So, Type::Tiny 1.2.0 (a.k.a. 1.002000 using Perlish decimals) is now available on CPAN.

    Highlights since 1.0.0:

  • Commented on graphql-perl - a GraphQL reference implementation in Perl
    If you can wait a couple of days, the next stable release of Type::Params should have measurable speed improvements over the current stable release too. I don't know enough about GraphQL to say whether it's suitable for implementing GraphQL's internal...
  • Commented on The Perl Toolchain Summit 2017 + Perl Events Instagram Feed
    Neural networks to classify photos! Do it!...
  • Commented on The Perl Toolchain Summit 2017 + Perl Events Instagram Feed
    Are you a programmer or not?! Write a script to poll your Dropbox every 15 minutes and upload any new pictures to Instagram....
  • Commented on Perl short string implementation is interesting
    It's actually when the string is shorter than 16 bytes. And it looks like a very nice optimization....
  • Posted Type::Tiny 1.2 Coming Soon to Toby Inkster

    Or 1.002000, because it uses Moo-like versioning.

    The Type::Tiny 1.1 (1.001_00x) development cycle has been going on since September 2014. Apparently I'm either very concerned about stability or very lazy. You can make up your own minds about that.

    But Type::Tiny 1.2…

  • Posted So I Guess I'm Back to Toby Inkster

    Hi… remember me?

    Been away a while, and now I have a whole heap of bug reports to get through. But you, dear reader, I'm giving the inside track. If there's a bug in one of my modules and you want me to prioritize it, comment below.

    Also, how are you doing?

    I'm good.

  • Commented on Are Restricted/Locked Hashes A Failed Experiment?
    Locked hashes are great, but if the implementation is slowing down all hashes, then I agree they should no longer be built in, and should be moved to a module That said, I think it's an important enough feature that...
  • Commented on qk: Quote Membership Hash Keys
    https://metacpan.org/pod/Syntax::Feature::Qwa...
  • Commented on Perl Challenge: Fun with Character Classes
    Where are my answers?!...
  • Commented on Paging TOBYINK
    Hi, yes I exist. Just busy with other stuff. Give me a run down of which distributions need fixing....
  • Commented on Private Moose Attributes
    Personally, I wouldn't make user, company, etc into attributes at all. Instead I'd write wrappers for the constructor: sub new_from_user { my ($class, $user) = @_; return $class->new( country => logic_to_determine_country(), language => logic_to_determine_language(), ); }...
  • Commented on Can you provide an x/y Point class in other languages?
    PHP 5... <?php class Point { public $x, $y; public function __construct ($x, $y) { $this->x = self::validate_number($x); $this->y = self::validate_number($y); } public function __toString() { return sprintf('[%d,%d]', $this->x, $this->y); } public static function validate_number ($n) { if (!is_numeric($n)) throw...
  • Commented on Fancy Matching of Delimited Text
    Have you considered bundling a Text::Balanced::Marpa::Compat module which re-implements the Text::Balanced API on top of it? The Text::Balanced API is frankly not great, but you might get more users if people have a simple drop-in replacement....
  • Commented on CPAN Cleaning Day 2457027: Changes and README
    Years ahead of you! ;-) Go to a SPARQL endpoint, and type in the following as the default graph URI (this is a link to a bunch of RDF data that I typically bundle with my distributions): http://api.metacpan.org/source/TOBYINK/Type-Tiny-1.000005/doap.ttl And the...
  • Posted Book Report - December 2014 to Toby Inkster

    As you may be aware, I'm writing a book which will eventually become a free e-book. This is my third report on how I'm getting along.

  • Commented on The dream of "use 7;"
    This is even what perl -v says: This is perl 5, version 20, subversion 1 (v5.20.1) built for x86_64-linux-thread-multi...
  • Commented on The dream of "use 7;"
    Many people who want to be able to increment major versions for Perl have now compromised and decided that the second part of the version number is the major version. So the current stable Perl is "Version 20.1 of the...
  • Commented on Of course you can `requires` attributes!
    It works in Moo, but there are some bugs with requires and attributes in Moose. Demonstration... use v5.14; package AAA { use Moose::Role; requires 'b'; has 'a' => (is => 'ro'); } package BBB { use Moose::Role; requires 'a'; has...
  • Commented on mop minus proposal
    There are a lot of class/role frameworks, but the decision making process for which to use is actually very simple: Start with Moo, and if you outgrow it, use Moose. You can mostly forget about the others. Also there's Moops...
  • Commented on mop minus proposal
    Parse::Keyword has issues, but it is possible to work around them. (And I don't think Yuki Kimoto's code triggers the problems in Parse::Keyword anyway.)...
  • Posted Quick post-LPW roundup to Toby Inkster

    I've just arrived back from the London Perl Workshop. Lots of very interesting stuff. A big thank you to the organizers! I especially liked:

  • Extending Syntax - Functional Programming m…
  • Commented on Tonight’s folly
    Well, this is quite pretty: my @new = map { s/foo/bar/r } @old; Compared with the old way: my @new = map { (my $tmp = $_) =~ s/foo/bar/; $tmp } @old;...
  • Commented on Book Report - October 2014
    Just a couple of minutes after writing this blog entry, I got an e-mail saying my talk has been accepted. Yay!...
  • Posted Book Report - October 2014 to Toby Inkster

    This month has been quite a busy one for me, so I haven't had much chance to work on my (in-progress) book. However, I have had some time to start work on a short talk for London Perl Workshop 2014

  • Commented on Where is Brent?
    Have you tried contacting him via Columbia University, who are his present employers according to LinkedIn?...
  • Commented on A fast pragmatic test runner
    I wonder if this could be achieved with a lockfile of some kind? Test files that work in parallel try to open a shared lock on a particular file (say t/lock), and wait until they obtain the lock. Test files...
  • Commented on A most amusing annoyance
    In most (all?) Unix shells, a parameter can be partly quoted. For example: echo 'foo'bar'baz' will print out "foobarbaz". It is this feature that allows parameters like --foo="bar baz" to work, so it's a valuable feature. Anyway, with your command,...
  • Subscribe to feed Recent Actions from Toby Inkster

    Subscribe to feed Responses to Comments from Toby Inkster

    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.