My YAPC::Asia photo gallery

"There is more than one way to enjoy it" is a slogan of YAPC::ASIA 2014. This is also another way that you can enjoy my story from photo on My Photo Gallery

YAPC::EU 2015 from 2nd to 4th September

The YAPC::EU 2015 conference in Granada will officially begin on Wednesday Septermber 2nd and will end on Friday 4th.

We also encourage you to be in Granada by Tuesday September 1st: we will be having other interesting events to warm up before the conference. For instance, if you'd like to use the venue to organize a meeting, a hackathon or a workshop just drop us a line.

In any case, make sure you don't miss the pre-conference meeting on Tuesday evening.

Mojolicious: Do It For The Candy!

Most of my recent blog posts about Mojolicious have revolved around its non-blocking capabilities. I like to write about those because I think that it is those capabilities that can bring new eyes to Perl from other languages, much like Node.js brought eyes to server-side javascript (for the same reason). That said, lately I have had excuses to show off Mojolicious and when I have done so, it has been some of the other cool features that have garnered the “Ooooh”s and “Aaaah”s from onlookers.

In this article I will show you some of those extras, like accessing your generated pages and even app itself direcly from the command line. I will also show how testing can be easy, powerful, expressive and yet still readably beautiful.

A Newbie is Sent in YAPC::ASIA

As I'm an awardee from the Sand-A-Newbie program to attend YAPC::ASIA in Tokyo, Japan. This is my blog about what I have got so far and would like to share:

A Newbie is Sent in YAPC::ASIA

Hope you enjoy it ! :)

Second Swiss Perl Workshop - Perfect Location

This year, the Swiss Perl Workshop was held at the Flörli Olten, an old Town Villa turned into a meeting house. The atmosphere at this place was just incredible. The beautifully renovated rooms and an on site catering team gave the whole event the feel of a big happy family gathering. A big thank you to Matthias and Roman and Daniela and her kitchen team. I am already looking forward to next years edition.

10636147_529071630560281_4585180694202937456_n.jpg

Day Two At the Swiss PErl Workshop

Well another pleasant day here in Olten and we started off with a talk by Laurent Dami about a project he has been working on for the Swiss courts system that allows admins access to CRUD a database that should not really ever be changed. ‎The key tto with was a mod called App::AutoCRUD‎ that allows the admins to see and manipulate data via a simple web interface that allows the specialized grouping and sorting required by the data and allows single and bulk operations. I(f you want to see a simple and elegant design that uses Plack and an ORM that isn't DBIx::Class it is well worth the look.

I hate unpacking sub calls with shift

Perl community has moved away from using special predefined Perl variables such as $(, $), $:, $!, $^H, $/ or many others without explicitly commenting their purpose. But why are we still using shift for sub params? i.e.:

sub foo {
    my $bar = shift;
}

Why is it still fine within the community to skip the @_ ? If we promote shift, then lets use pop as well? Why not? it looks nice:

sub foo {
    return pop, shift;
}

Though I am sure someone already uses it.. how about those that use shift at line 100 inside the sub ? I hate that.. It makes really hard to follow code, for instance is it sixth or seventh unpacked argument?.. I think it’s bad practise.

I like when code is consistent and self-documenting. I love when the very first line inside the sub lists expected parameters! Just look how beautiful and tidy it looks:

sub foo {
    my ( $foo, $bar, $baz ) = @_;
}

You might think that it is convenient to use shift in cases like:

Web Development

My focus is Perl used in web development. I am creating a "Perl Kata" (curriculum) for the CoderDojo project in an attempt to teach Perl the right way to younger programmers.

About blogs.perl.org

blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.