Issue #42 - 2012-05-14 - What is in a name?

latest | archive | by szabgab

Hi,

This issue was put together in Kiev, thanks to Yaroslav Korshak (yko), Alexandra Solov'eva (Sasha), Viacheslav Tykhanovskyi (vti) who organized Perl Mova and invited me to participate. Special thanks to yko and Sasha who even let me stay in their apartment.

I enjoyed myself very much walking around in Kiev and the conference was also great. On the first day there were several talks in English. The second day I spent in the hallway track. vti has already wrote about it (see below), but I hope we'll see several other reports written about the event.

It seems giving names is a central theme of this issue. There are at least 3 items related to the importance and the difficulty of naming things.

Lastly, let me point out, that Damian Conway will give a talk in New York, in May 17. See details below.

Now to the posts...


Announcements

Acme::MetaSyntactic is back!

After a hiatus of five and a half years, Philippe Bruhat (BooK) has finally put together a new version of his module. Not only that, he also pays tribute to the political events in his country. Having this module, no one should have any excuse of giving bad names to their modules or classes or methods. See the other links about naming.

YAPC::NA Will Be Televised!

YAPC::NA will be streamed live for free. If you were not able to come, this is a good opportunity to follow the talks even if you miss the hallway track and the other social aspects of the conference.

WWW::UsePerl::Server

Acme created a back-up of all the content use.perl.org had and made it available to you.


Articles

NYTProf, File IO, and an Optimization Gone Awry

In order to speed up processing chromatic added caching to his application, just to find out that the module he was using writes the data it gets to a temp file. After getting rid of the premature optimization, he got faster and nicer looking code.

On the importance of intuitive names

In light of the post of Joel Berger this writing by Zbigniew Lukasiak is even more interesting. How do you pick names (of classes and methods in this case) to make it easier for people to use them? To make them more obvious?

Introduction to Perl one-liners

This is the introduction Peteris Krumins added to his recently published e-book about one-liners.

Write the Wrong Code First

Many people, especially beginners and managers expect you to write good code. Right at the beginning. That's not how most of us work. chromatic puts it quite right. There is a place for rewriting code. There is a place for refactoring. There is also a need for writing automated tests.

Simple Attribute-Based Template Exporting

chromatic wrote a plugin for Template::Toolkit which is, in his words, less ugly than Haml. Admittedly this is not the way how to write a TT plugin but it is an opportunity to show how to export functions using attributes.

A file download CGI script in Perl

Sinan Unur wrote a detailed description on how to create a file download script.

Web-Multitasking: Whos gonna work for the working man?

Sebastian Willing provides several strategies improving the performance of your web application. He also gives descriptive names to each one of them.


Discussion

Removing Locale::Country::SubCountry from CPAN

Instead of trying to keep this information up to date manually, Ron Savage started to use the Wikipedia to scrape the information and store it in a local SQLite database. People quickly came to his help with suggestions to take over the module and pointers to other sources for the information he was missing.

On CPAN Namespaces: Urban Namespace Planning

Naming your children and your modules isn't easy. Joel Berger struggles with this (in public) while getting the help of many people. Beyond the specific issue, the question is what should the module name describe? The technology it implements? The problem it solves? Should it be some unrelated name, just to be nice and interesting?

Don't use Cache::Memcached for UTF8 strings

A story in which Thomas Kalusner (domm) find out the hard way that Cache::Memcached does not fully support utf8 but Cache::Memcached::Fast does. That sounds simple but see the discussion that followed.


Testing

CPAN Testers Summary - April 2012 - Pictures At An Exhibition

The CPAN Testers Fund got its first individual donations (hint, you can donate too) and Barbie explains why it *is* important to run the tests during the installation process or how that could be avoided by looking at the data in the CPAN Testers database.


Code

Simulating multiple, lazy attributes

If I told you that you'll see an example of 'native attribute traits and accessor currying of Moose', would you be interested? What if it helped you reduce code and make it easy to write accessors for a configuration file? Written by Chris Weyl of White-Point Star, LLC.

Reddit API for Perl

Jeff Ober put together a Perl module to access Reddit. It already has many parts such as posting a new article, voting, commenting and searching Reddit. It looks like something very useful for me. The funny thing is that on the TODO list you can see 'unit testing'. Oh well.

Using the VirusTotal API v2.0

Christopher Frenz, the author of Pro Perl Parsing, has recently opened a blog showing Perl examples. This one is a small example on using the VirusTotal API to check if a file has viruses in it. I found a module on CPAN called VT::API that implements version 1.0 of the API while this examples is for version 2.0. I hope the CPAN module will be updated to the new version of the API... I can also imagine a command line tool using this code and later maybe even a GUI for it.

Mix Perl and C++/CLI

xiaoayfeng shows a small example how to embed Perl into an application written in C.


Event reports

Perl Mova / YAPC::Russia 2012 is over!

by Viacheslav Tykhanovskyi (vti)


Fun

Damian Conway in New York on May 17, 2012

Temporally Quaquaversal Virtual Nanomachine Programming In Multiple Topologically Connected Quantum-Relativistic Parallel Spacetimes...Made Easy!


Perl 6

Perl 6 and D separated at birth

This is interesting. I never looked at it, but if the D programming language is really that similar to the power of Perl 6 and it is in a form that can be used in production systems, then it might be interesting to check it out. I love Perl 6 and if I can have something that is similar to it today, then... then the question, why is it not in wide-spread usage yet? Brad Gilbert recommeds to learn D.

Since the Hackathon...

After the fun and productive hackathon in Oslo, Jonathan Worthington is back at his own desk planning to implement many additional parts of Perl 6.


The self promotion section

Registration process with Perl Dancer

A very simple version of double opt-in registration: Let visitors type in an e-mail, and send them a code so they can verify they are in control of that address.


Events

I usually list the next 3-4 events here. The list of all the events can be found on on the web site. If your Perl event is not in the list, let me know.

Nordic Perl workshop

June 4-5, 2012, Stockholm, Sweden

YAPC::NA

June 13-15, 2012, Madison, Wisconsin, USA

French Perl workshop

June 29-30, 2012, Strasbourg

Quack And Hack 2012

June 30-July 1, 2012, Philadelphia

You know, you could get the Perl Weekly right in your mailbox. Every Week.
Free of charge!

Just ONE e-mail each Monday. Easy to unsubscribe. No spam. Your e-mail address is safe.
Perl Weekly on Twitter Perl Weekly page on Google+ Like the Perl Weekly on FaceBook RSS Feed of the Perl Weekly. Updated once a week