find the perl subroutine most in need of refactoring

fix it

repeat... virtuous whack-a-mole with https://github.com/wickline/whack

Date, Times, Perl, and You

Dave Rolsky will give a talk at YAPC::NA 2012 described as: 

Dates and times are confusing and crazy. What nut invented Daylight Saving Time? Someone who’d never imagined a computer, that’s who!

Dealing with dates and times might seem simple at first, but there’s a lot of gotchas.

This talk will start by covering some concepts worth knowing about (What is an Olson timezone? What’s the Gregorian Calendar?).

After that we’ll talk about how the DateTime suite of modules can make your life a little easier. I’ll show you some best practices for working with dates and times, and highlight some gotchas in DateTime’s API, and with datetimes in general.

[From the YAPC::NA Blog.]

The Perl April Fools' Gag That Could Have Been

On my last entry, I told you that I have had an idea for a Perl-related April Fools' day gag, and that I would possibly reveal it on 2-April with a big disclaimer on top, just for kicks. Well, it's already 9-April, but I guess it is better late than never, right?


OK, now let's move on to the gag itself:

Vim report for Devel::Cover (Perl QA Hackathon) - part 2

At last week's QA Hackathon in Paris I put together a Vim report for Devel::Cover to show coverage information as Vim signs. See http://blogs.perl.org/users/paul_johnson/2012/03/vim-report-for-develcover-perl-qa-hackathon.html

Whilst nice, and somewhat useful, this was very much a proof of concept. It only worked for statement coverage, it wasn't particularly clever, nor was it particularly pretty.

I've just released Devel::Cover version 0.86 which solves a number of these problems. It shows all types of coverage data (that Devel::Cover knows about), it seems to be pretty usable (at least in the way I use vim), and it provides a way to customise it to make it pretty (I'm fairly happy with the way mine looks).


In this image you can see some of the features. The column on the left-hand side shows the coverage information. Five coverage criteria are displayed as:

P - Pod coverage
S - Statement coverage
R - Subroutine coverage
B - Branch coverage
C - Condition coverage

Dancer: Getting to Hello World

R Geoffrey Avery will give a talk at YAPC::Europe 2012 described as

When attempting to learn Dancer I ran into the problem that all the documentation started from "Here is a 'Hello World' script". But that was assuming many things were set up and configured and that just was not true, at least not on my server.

This is a collection of what I learned.

Painless RSS processing with Mojo

I wasn't looking forward to dealing with this XML feed because I hate anything that deals with XML. However, with Mojo's DOM stuff, I don't even have to know it's XML. Here's the interesting bits from a program that's not much larger than this snippet:

use Mojo::UserAgent;

my $ua = Mojo::UserAgent->new;
my $response = $ua->get( $feed_address )->res;

my @links = $response->
dom( 'item' )->
grep( sub { $_->children( 'title' ) !~ /.../ } )->
map( sub {
map( sub { $_->text } )
} )->

MetaCPAN at the QA Hackathon

One week ago, I happily had the opportunity to be at the QA Hackathon in Paris. In the past I had been vaguely aware that the hackathon exists and I had some shadowy idea of what goes on at such a thing, but I just never considered getting involved. I didn't think it was very much related to the sorts of things I work on. Happily, it turns out that I was wrong.

First off, thanks!

(Ab)using the MetaCPAN API for Fun and Profit

Olaf Alders will be giving a talk at YAPC::NA 2012 described as:

MetaCPAN aims to make it fun and easy to get data about CPAN modules, releases, favourites and even CPAN authors themselves.  Sites like www.github-meets-cpan.com, perlresume.org, mapofcpan.org and metacpan.org itself make use of the MetaCPAN API to deliver interesting and useful information about the constantly growing body of code in the CPAN.

This talk will touch on the various ways you can connect to the MetaCPAN API and give you some handy tips to ease you on your way to metadata joy.  By the conclusion of this talk you will be armed with enough knowledge to crank out the next cool CPAN mashup before suppertime.

[From the YAPC::NA Blog.]

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.