Tut # 7: jQuery, Ajax, xml, Perl, databases and utf8

I've tried to cover significant interactions between the topics mentioned in the Title above:

Tutorial # 7

The tutorial includes references to various now more-or-less standard documents, or collections thereof, pertaining to Perl, databases and utf8.

Perl Open Report Framework 0.901 released

Hi all,

I startet last month with developing a new Report Framework for Perl:

Perl Open Report Framework

It is really open, really a framework and so easy to use and develop only in Perl.

Documentation is in work, but first code - containing examples - is available as tarball at:

http://www.jupiter-programs.de/prj_public/porf/Porf.0.901.tar.gz

A little information in german can be found at
http://www.jupiter-programs.de/prj_public/porf/index.htm and
http://porf-jpr1965.blogspot.de/2013/05/hier-gibt-es-alle-informationen-uber.html

Waiting for comments,

bye Ralf.

Perl Hunter Job Leads

The Perl Hunter has several new job leads. Check them out on the Perl
jobs web site. If you are interested, send your resume in PDF and code
samples (URL is fine) to PDF at PerlHunter.com

http://jobs.perl.org/job/17351
http://jobs.perl.org/job/17355
http://jobs.perl.org/job/17353

Alien::Base Final Report

I have just sent my grant manager, Makoto Nozaki, my final grant report for Alien::Base. As I have said in the report, it has been slowed recently by my Ph.D. Thesis and Defense (successful!) and the lack of Mac CPANTesters (or at least the lack of reports on my testing modules). TL;DR, Alien::Base is essentially ready, but work still needs to be done, and will continue.

The report is included after the break.

Improved autobox-ing. I'm loving it :o)

print (0..9)->grep { $_ > 5 }
            ->map  { $_ * 2 }
            ->join(' - ');

 # prints: 12 - 14 - 16 - 18

Isn’t that nice ? It is now possible with

use autobox::Core;    
use PerlX::MethodCallWithBlock; 

Tags now available with Test::Class::Moose

Side note: Why did I miss that last Perl QA-Hackathon? I've attended every one since they started ... except for the last one. I missed it because the damned French government can't get around to reissuing my damned visa, despite the fact that they're legally required to. I've also had to pass on some business opportunities and a trip Romania. /me is very unhappy with France right now.

So I've finally gotten around to updating Test::Class::Moose to have tags. You can read my previous post when I explain why they're useful. You can go out to github and grab it now, or wait a bit for it to hit your favorite CPAN mirror.

The constructor is very straightforward. For the case I previously described when the network went down? Skip test methods with a network tag!

Test::Class::Moose->new(
    exclude_tags => 'network', # scalar or arrayref of tags
)->runtests;

Or maybe you want to run your Big Data and API tests, but skip deprecated methods:

Test::Class::Moose->new(
    include_tags => [qw/bigdata api/],
    exclude_tags => 'deprecated',
)->runtests;

This should solve a common issue where people want to attach metadata to their test suite but there's no clean support for it.

Unfortunately, this was implemented with Sub::Attribute. That's a fantastic module, but it's an optional dependency that some don't want. I had to use that module, though, because there's a little-known edge case where subroutine attributes won't fire if the module was loaded via "eval". I might try another swing at fixing this in the future (via require and a path in Test::Class::Moose::Load?), but for now, if you can't load Sub::Attribute, a warning will be issued and your tag filters will be ignored.

Patches welcome for improving this feature (there are many things which can be done here), but for now, this is the last major piece really needed to make this the goto module for many large test suites.

The clearest way(s) to check if a List contains...

There is more than one way to do it.Toby Inkster’s Creating your own Perl hits the nail on the head: with Perl you can choose the language that you code in

"So go on; create your own Perl. Make it your gift to yourself." 

( Syntax::Collector makes it very simple, and will also help you bundle your “most used modules” - more useful modules in Toby’s article)

Today i’m going to explore one aspect of the Perl language:

how do you check that a list contains a given element?

Type::Tiny - not just for attributes

OK, so I've gotten back from the May Day parade, had some lunch, and now it's time for me to write about Type::Tiny some more...

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.