Perl Weekly
Issue #113 - 2013-09-23 - Object Oriented Perl
latest | archive | edited by Gabor Szabo
|
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?
Gabor Szabo
|
|
|
Sponsors
|
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
|
by Renee Baecker (RENEEB)
There is going to be a Perl Community Workshop in Frankfurt, Germany on October 26-27, 2013. The announcement is in German.
|
|
Articles
|
Helios is an asynchronous distributed job processing system.
|
|
by Yanick Champoux (YANICK)
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
|
by Timm Murray (TMURRAY)
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.
|
|
|
The monthly report from the CPAN Testers service.
|
|
Code
|
by Steven Haryanto (SHARYANTO)
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.
|
|
by David Farrell (DFARRELL)
David Farrell shows how to use the LoadFile function of YAML::XS and how to access the data after loading it.
|
|
|
Fun
|
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
|
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.
|
|
by John Napiorkowski (JJNAPIORK)
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
|
by Damien Krotkine (DAMS)
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.)
|
|
|
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
|
by Jonathan Worthington (JONATHAN)
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.
|
|
|
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
|
by Daisuke Maki (DMAKI)
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!
|
|
|
by Dave Cross (DAVECROSS)
Dave Cross has posted a collection of the videos covering his own talks at YAPC::EU in Kiev.
|
|
|
Weekly collections
|
|
|
Perl Maven Tutorials
|
Traversing a directory tree is a very good example to explain recursion. Certainly more natural than Fibonacci of factorial.
|
|
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.
|
October 4-5, 2013, Paris, France
|
|
October 4-6, 2013, Pittsburgh, PA, USA
|
|
October 24-25, 2013, Lisbon, Portugal
|
|
October 21-23, 2013, Auckland, New Zealand
|
|
You know, you could get the Perl Weekly right in your mailbox. Every Week. Free of charge!
|