Tag Perl

Bootylicious – Single file Mojo based blog

As you might know, Sebastian recently added single-file support to his Mojolicious framework. Viacheslav Tikhanovskii has taken this functionality and run with it, producing bootylicious – a ~280 SLOC web log system. It sorts a directory of POD formatted blog posts, and even supports RSS. I think these single file apps is an excellent way to demonstrate your framework. I actually remember this as being a selling point for Maypole back in the days :)

Initial Impressions of Catalyst Book | A Foolish Manifesto

Frew Schmidt has read the first four chapter of the new Catalyst book and gives some first impressions:

So far though, I would say that the book is better than most programming books. Really, a lot of programming books need to be more like this, instead of focusing entirely on the arcana of one framework they should help you be a better programmer overall.

Screencast: Introduction to Catalyst by Dan Dascalescu

Suck on that, RoR :-)

Quick textmate tip for Perlers

Using Textmate for Perl programming? As you probably know, the Perl bundle supports validating your perl syntax with a quick shortcut. However, I picked up a quick tip from the “Javascript Tools” bundle. If you rebind the command as ⌘-S, TextMate will automatically check your syntax every time you save a Perl file. In case you need help doing this:

In the menu Go to Bundles -> Bundle Editor -> Show Bundle Editor

Open the Perl Bundle, Click ‘Validate syntax’, and from there you can easily rebind the key as shown below.

Bundle Editor
Uploaded with plasq‘s Skitch!

I love lazy web / Catalyst dispatcher graphs

So, it seems that people are actually reading my ramblings. For instance, Franck Cuny read my description of the Mojo routes graph generator. Then he took it upon himself to write the Catalyst equivalent. That is just so awesome!

Frank says “For the moment only private actions are graphed.”, hopefully, it can be extended to understand chained actions. I can’t wait to test it out on the iusethis code base. Now I can just hand this graph to Arne when he wants to know which template matches which action.

Awesome route graph with MojoX::Routes::AsGraph

We are testing out Sebastian’s Mojolicious framework for use in a Nordaaker project. Mojolicious uses an routes-based dispatcher, which is nice, but sometimes it’s hard to keep track of how everything is routed. Luckily Melo already has an excellent solution for this:

routes.dot

Just check out MojoX::Routes::AsGraph , which can generate these lovely graphs for you. It can even generate Ascii graphs, if you’re a hard-core console user (Thanks to vti for telling me about that, as well as showing me this module in the first place :).

13:46 < vti>     my $graph = MojoX::Routes::AsGraph->graph($r)->as_ascii;

With that the above graph looks something like this:

Default

Would be nice to see something similar for Catalyst, to visualize all the chains and dispatch points.

Fixing the POD synopsis in OSX

Having problems copying example code from POD and getting invalid characters in your Perl? Apparently this is a problem with nroff on OS X (According to my linux hacking peeps), but the solution is quite simple. Just stuff this in your .profile or whatever ;)

alias perldoc='perldoc -t'

And your pod is rendered in glorious pure-text, without using weird characters for ‘ and -.

Gitorious now powered by norwegian company

Even though we’re currently using github for all our git hosting needs, we do like the open source alternative gitorious. It makes us happy that it’s now officially supported by some of our favorite rubyists from Oslo.

Gitorious now is a project maintained by Shortcut AS, which I co-founded. Shortcut AS now officially supports and develops Gitorious in cooperation with contributors outside Shortcut. Gitorious is, and will continue to be, 100% free software, licensed under the Affero GPL.

With my open source hat on, I am looking forward getting Catalyst moved over to Git in the near future. Hopefully we can get a nice gitorious setup for both Moose and Catalyst.

MooseX multi method dispatch is second to none.

You might have an awesome OO system if:
you are able to implement Rock-Paper-Scissors-Lizard-Spock using nothing but multi methods (via nothingmuch).

The Iron Man talk from Nordic Perl Workshop

The NUUG Video group has finished the first video from the latest Nordic Perl Workshop, and sjn++ has put it online on the Oslo.pm blip.tv channel. It is Matt S Trout’s Iron Man announcement from the lightning talks. Watch it in awe, then go Sign up for the program.

Copyright © marcus ramberg
nordaaker

Built on Notes Blog Core
Powered by WordPress