Category Archives: Perl

How fast my git repositories are growing?

I wrote a very small utility to gather LOC counts from a git repository. Called gitsloc, it’s based on Cloc, with some extra goodness provided by Sysadm::Install (a rather inaptly named module, if you ask to me, but full of useful gems).

I guess it could actually have some uses, who knows?, but I wrote it mostly because I wanted to see how fast repos are growing, and R is the obvious tool to tinker with the results.

I’m less than a beginner with R, and I have to admit plotting data from a multi-column CSV file is less straitghforward than I expected: I had to use xyplot from the lattice package, like this:

xyplot(
  Perl + Bourne.Shell ~ 1:nrow(sloc),
  data = sloc,
  type = 'a',
  auto.key = list( space = "top", lines = TRUE, points = FALSE)
)
view raw gistfile1.r This Gist brought to you by GitHub.

Here the result, with data provided analysing the Dancer github repository (branch devel).

Perlish plans for 2011

[flickr id="4875422128" thumbnail="medium" align="left"]

Besides the Music Hack Day in Cannes, there are some events I will focus on in 2011:

  • The Italian Perl Workshop. This year, for a change, we will be in Turin. The conference will be held on September 8-9, with my Introductory Perl Class the day before. I’m linking the material for last year’s class, but I have slightly different ideas for the incoming version.
    I would like to go faster on basic syntax – spending a reasonable amount of time dispelling doubts about data structures, which proved to be useful – and to present Moose as “the way you should do OOP in Perl”, probably mentioning the old way as historical curiosity.
  • In the middle of August there will be YAPC::Europe, in Riga. It may seem odd to say that in January, but I’m looking forward for a climatic detour from the hot days we’re likely to have in Spain. And it will be great to meet friends and Perl hackers, as usual.
  • For the past two years I missed the London Perl Workshop. I think its single day model works very well and should be copied more avidly. And I love to spend time in London.

IPW2008 – Idee per talk

Non so se quest’anno riuscirò ad essere presente all’Italian Perl Workshop, ma sto lo stesso pensando a quale (o quali) potrebbe essere l’argomento di una mia eventuale presentazione. Ecco le idee avute finora, e che ho già sottoposto al vaglio della mailing list:

  • Movable Type Open Source (20 minuti)
    Six Apart ha intrapreso il progetto di una versione opensource di Movable Type, basata sulla versione 4 di MT. Quali sono le novità della piattaforma, come contribuire, perchè (e perchè no).
  • Tecniche di debugging (20-50 minuti)
    Tutorial su tecniche e trucchi per il debugging in Perl. Come sfruttare a proprio vantaggio le feature più dinamiche di perl.
  • “Non è mai troppo tardi” (20 minuti)
    Adozione di best practice là dove prospera il lato oscuro. Come pagare il debito tecnologico senza l’aiuto di Bono Vox. Storia di un sopravvissuto.
  • Marketing Perl (10-20 minuti)
    Come può funzionare il marketing di Perl? Ha senso? Chi lo sta facendo? (con scampoli della versione 2008 di “Perl.it wants you!”)