Issue #113 - 2013-09-23 - Object Oriented Perl

latest | archive | by szabgab

Hi,

It seems the development of p5-mop (a subset of Moose in core Perl) has inspired a few people. This is despite the expectation that it is at least 1-2 years till it becomes ready for production code. This week we have 3 related articles.

I have also started to experiment adding a few more links in the comment section of the newsletter. What do you think about those?


Sponsors

We're Hiring Telecommuters - Grant Street Group

We are a growing software company using open source software/modern Perl practices to build innovative e-payment, auction, and tax collection web applications.
We're looking for talented, motivated professionals committed to flawless work and customer service.
Email resume: 106686-CS-6734@grantstreet.hrmdirect.com


Announcements

Frankfurter Perl-Community Workshop 2013

There is going to be a Perl Community Workshop in Frankfurt, Germany on October 26-27, 2013. The announcement is in German.


Articles

Helios 2.61 Released

Helios is an asynchronous distributed job processing system.

Hacking Hiveminder

Hiveminder is a collaborative todo list 'in the cloud', that can be used even if you only collaborate with yourself. It offers and API wrapped in Net::Hiveminder. Yanick Champoux has started to build a new, Perl based client. First for the command line, with later plans to create his own web interface. See the explanation about how the command line interface was built.


Testing

Underappreciated Perl Code - Test::More::subtest()

Maintaining the number of tests can be a real pain, and running tests in parallel can confuse the parser. Timm Murray from the Wumpus Cave shows how the subtest feature of Test::More can solve the former, and has an example how the latter might be solved.

CPAN Testers Summary - Die Mensch-Maschine

The monthly report from the CPAN Testers service.


Code

Breaking users of old versions of a module

An interesting article by Steven Haryanto discussing how to handle backward incompatible changes. One of the approach is to keep the old behavior in a separated module and allow the user to specify which behavior they want to have at the use-time of the module.

How to Load YAML Config Files

David Farrell shows how to use the LoadFile function of YAML::XS and how to access the data after loading it.


Fun

Perl objects round up

Tim Heaney (oylenshpeegul) has implemented a simple class with 2 attributes, and a subclass inheriting from it in 7 different ways: vanilla Perl, using Object::Tiny, Moo, Moose, MooseX::Declare, Moops and the current version of p5-mop, called p5-mop-redux. In such a small example it is quite easy to see the differences among these approaches. (Discuss it on reddit.)


Web

Poor Mans Jobqueue for Catalyst Apps

What would happen, if you need to run a long process in a web app? There are plenty of established solutions for this, but David Schmidt decided to use his database to manage the queue.

Perl Catalyst - Hamburg Status and the Future

John Napiorkowski explains why he changed the release policy of Catalyst to have a development release after each quest has been completed: 'it would help inspire contributors since there's nothing better than to see you code live on CPAN'. So far 3 out of 7 quests for the Hamburg release have been completed.


Perl 5 mop

p5-mop: a gentle introduction

Damien Krotkine provides a little background for p5-mop and explains why it is important to try it now, while it is still in development. He also gives examples about how to try it. (There is also a copy of this post on blogs.perl.org with some further comments.)

On porting a Moose module

Stevan Little, the author of Moose and main force behind p5-mop further discusses how he has been porting Bread::Board to use the new, and still under development p5-mop.


Perl 6

Material from the Rakudo and NQP Internals course

Jonathan Worthington writes about the 2-day course he ran a few weeks ago and links to the material that was released under Creative Commons license.

The MAIN subroutine in Perl 6

Konrad Borowski, who you might know from the weekly report about Perl 6, started a new series of articles about Perl 6. In a style, the first one is about the MAIN subroutine which adds command line handle handling to your script.


Past events

YAPC::Asia Tokyo 2013 is over

Daisuke Maki (lestrrat) who ran the biggest Perl events in the world decided to retire from this volunteer position. YAPC::Asia is looking for a leader and an organizer!

Talks from Kiev

Dave Cross has posted a collection of the videos covering his own talks at YAPC::EU in Kiev.


Weekly collections

Perl Maven Tutorials

Understanding recursive subroutines - traversing a directory tree

Traversing a directory tree is a very good example to explain recursion. Certainly more natural than Fibonacci of factorial.

Traversing the filesystem - using a queue

Solving the same problem as above, but this time using a queue.


Events

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

OSDC.fr

October 4-5, 2013, Paris, France

The Pittsburgh Perl Workshop

October 4-6, 2013, Pittsburgh, PA, USA

Portuguese Perl Workshop

October 24-25, 2013, Lisbon, Portugal

OSDC NZ

October 21-23, 2013, Auckland, New Zealand

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