17 sept 2011

Bootstrap && Perl

I recently found the bootstrap twitter project, which I'm going to use in my projects. Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites. It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, layouts, and more.
It also supports javascript, and provide you with some awesome plugins to get you started!
This javascript provides a basic interactive layer on top of the included styles.

Of course, this isn't an only-Perl related topic, but I think it is a very interesting way of improvement for the user interface of any CGI::App, Catalyst, Dancer, Mojolicious, ...  application.

Hope this helps in your next projects.
If you used this tool, it would be nice to hear from you...

15 sept 2011

Rebecca Perl

Hi, Rebecca
I found your video when I was looking for Perl videos at youtube. Perl is a nice programming language, and a lot of clever people uses it every day. It was invented 24 years ago, probably near to your birthday...
You voice is amazing, this song is awesome... this kind of feelings are the same that we get when we work with Perl. From now on, your songs will go along with my work.
Thanks, Rebecca !

$rebecca_perl++;

13 sept 2011

Gearman: framework to farm out work

Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load balance processing, and to call functions between languages.


18 ago 2011

Perl vs Python debate live from OSCON 2011

An interesting interview between Perl and Python people, I really like this video (OSCON 2011). It was a knights debate, and in my opinion, Perl 1 - Phyton 0. What's yours?

24 abr 2011

CPAN Module review - Web apps

When I'm developing web applications, I use those frameworks that make my work easier. The size of the webs is not big and I have been working with CGI::Application for years. In a recent search, I have found Dancer. This framework handles the routes concept (an idea from Ruby's Sinatra); routes are paths which are binded to code. For example:

get '/home' => sub { 'Hi, this is home!' };

There are a lot of plugins available (database, logging, session handling, REST, AJAX, validation, templates, WebSocket, ...) at CPAN. You can write your own plugin by subclassing Dancer::Plugin.

The framework comes with a script that builds the skeleton of your application, with a nice structure in folders: views, libs, ... it takes seconds to start a new application.

I  definitely recommend Dancer to you. Just install and try!

21 abr 2011

Perl 5.14 - favourite features

Perl 5.14 is near to be released, and RC1 is out. I'm reading the perldeltas documents looking for nice features. First of all, I'd like to send my congratulations to this fantastic team of people who has done it possible.
Since Perl 5.13.6 (documentation), you can now use the keys, values, each builtin functions on arrays (previously you could only use them on hashes). In fact, this feature is available in Perl 5.12, but it was not documented in perldelta, and I'm using it now.

15 abr 2011

CPAN Module review - Exceptions

I would like to share with you those modules that I use when I perform come kind of tasks. I start this series with exception handling. And the "winner" is... Try::Tiny !
Why?
  • nice / sugar syntax
  • Devel::Declare based (no source filters)
  • simple
What's your favorite alternative?

13 ago 2010

perl upgrade to 5.12

This afternoon, at IRC I asked for the best way to upgrade the system perl on my Ubuntu 10. Fortunately, a gentle person answered me in the right and cool direction... perlbrew
In a few minutes, I searched it at CPAN, readed the documentation, decided to intall it and... voilà... it works!! In my opinion this is a very nice piece of code, and if you don't know it, you must try it. It can download, build, install and manage a set of perl versions, and you will discover a new wonderfull way to work with Perl. Enjoy it and many thanks to that kind of smart people that share amazing tools.... so thaks, Kan-min Liu.

Yo can find perlbrew here (CPAN).

24 abr 2010

perl web services

I have to write web services, and I'd like to hear from you about your favourites modules in order to do this task. I've used SOAP::Lite, but I really like to know if this is the best chance at Perl environment.
My code has to expose a WSDL interface, and auto-generated way to do this it's required