Perl Weekly
Issue #42 - 2012-05-14 - What is in a name?
latest | archive | edited by Gabor Szabo
|
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...
Gabor Szabo
|
|
|
Announcements
|
by Philippe Bruhat (BOOK)
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 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.
|
|
Acme created a back-up of all the content use.perl.org had and made it available to you.
|
|
|
Articles
|
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.
|
|
by Joel Berger (JBERGER)
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?
|
|
|
by Peter Krumins (PKRUMINS)
This is the introduction Peteris Krumins added to his recently published e-book about one-liners.
|
|
|
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.
|
|
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.
|
|
by Sinan Unur (NANIS)
Sinan Unur wrote a detailed description on how to create a file download script.
|
|
|
by Sebastian Willing (SEWI)
Sebastian Willing provides several strategies improving the performance of your web application. He also gives descriptive names to each one of them.
|
|
Discussion
|
by Ron Savage (RSAVAGE)
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.
|
|
|
by Joel Berger (JBERGER)
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?
|
|
|
by Thomas Klausner (DOMM)
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
|
by Barbie (BARBIE)
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
|
by Chris Weyl (RSRCHBOY)
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.
|
|
|
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.
|
|
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.
|
|
by Xiao Ya Feng (XYF)
xiaoayfeng shows a small example how to embed Perl into an application written in C.
|
|
Event reports
|
|
Fun
|
by Damian Conway (DCONWAY)
Temporally Quaquaversal Virtual Nanomachine Programming In Multiple Topologically Connected Quantum-Relativistic Parallel Spacetimes...Made Easy!
|
|
|
Perl 6
|
by Brad Gilbert (BGILLS)
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.
|
|
by Jonathan Worthington (JONATHAN)
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
|
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.
|
June 4-5, 2012, Stockholm, Sweden
|
|
June 13-15, 2012, Madison, Wisconsin, USA
|
|
June 29-30, 2012, Strasbourg
|
|
June 30-July 1, 2012, Philadelphia
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|