No time to wait http://showmetheco.de/index.rss Just code Twist 0.1 Why I chose to build a Plack framework instead of using Mojolicious http://showmetheco.de/articles/2011/1/why-i-chose-to-build-a-plack-framework-instead-of-using-mojolicious.html I've invested a lot of time in Mojolicious development (a so called "next generation web framework for the Perl programming language"). Of course I didn't commit any revolutionary patches, or affected it's architecture somehow, but I tried to use it in every scenario I could think of, reported bugs, proposed a few feature requests. So why I decided to switch to Plack and build my own web framework?

Keep reading ]]>
Perl Mojolicious Plack framework Wed, 26 Jan 2011 14:51:00 GMT http://showmetheco.de/articles/2011/1/why-i-chose-to-build-a-plack-framework-instead-of-using-mojolicious.html
Using Perl, Mojolicious and Redis in a real world asynchronous application http://showmetheco.de/articles/2011/1/using-perl-mojolicious-and-redis-in-a-real-world-asynchronous-application.html Mojolicious is a growing modern Perl web framework which is ready for building real world applications. Today we will consider architecture of http://check-host.net which is built on top of Mojolicious modules.

Redis is a powerful key-value database that allows you to create fast and lightweight applications. You can learn more about using Redis in Perl from other my article http://showmetheco.de/articles/2010/11/mojox-redis-an-asynchronous-redis-implementation-for-mojolicious.html. Building asynchronous applications allows you to avoid using threads, so such applications tends to use less memory and human power to deal with all their complexity.

Keep reading ]]>
Perl Mojolicious Redis async Fri, 14 Jan 2011 18:55:00 GMT http://showmetheco.de/articles/2011/1/using-perl-mojolicious-and-redis-in-a-real-world-asynchronous-application.html
Hypnotoad: A new preforking Perl server for Mojolicious http://showmetheco.de/articles/2010/11/hypnotoad-a-new-preforking-server-for-mojolicious.html From the documentation:

Mojo::Server::Hypnotoad is a full featured UNIX optimized preforking async io HTTP 1.1 and WebSocket server built around the very well tested and reliable Mojo::Server::Daemon with TLS, Bonjour, epoll, kqueue and hot deployment support that just works.

Keep reading ]]>
Perl Mojolicious server preforking Tue, 30 Nov 2010 17:10:00 GMT http://showmetheco.de/articles/2010/11/hypnotoad-a-new-preforking-server-for-mojolicious.html
MojoX::Redis: an asynchronous Redis implementation for Mojolicious http://showmetheco.de/articles/2010/11/mojox-redis-an-asynchronous-redis-implementation-for-mojolicious.html Author of this post is und3f, author of MojoX::Redis. You can follow him on Twitter http://twitter.com/und3f and/or GitHub http://github.com/und3f.

Today's topic is MojoX::Redis module for Mojolicious and asynchronous commucation with Redis.

Keep reading ]]>
Perl Mojolicious Redis Tue, 16 Nov 2010 20:22:00 GMT http://showmetheco.de/articles/2010/11/mojox-redis-an-asynchronous-redis-implementation-for-mojolicious.html
Sending email from Mojolicious http://showmetheco.de/articles/2010/11/sending-email-from-mojolicious.html Ever wondered what is the easiest way to send an email from Mojolicious? Some simple way that would allow you to use templates and more advanced stuff? There is already a plugin for that — Mojolicious::Plugin::Mail!

Keep reading ]]>
Perl email Mojolicious Thu, 11 Nov 2010 17:13:00 GMT http://showmetheco.de/articles/2010/11/sending-email-from-mojolicious.html
How to include Mojolicious in your app's git repository http://showmetheco.de/articles/2010/10/how-to-include-mojolicious-in-your-apps-git-repository.html When you are developing an application that you want to deploy really fast and easy you should consider including Mojolicious files in your repository.

Some of the advantadges of this approach are:

  • You don't have to worry about installing Mojolicious
  • You don't have to worry about non compatible Mojolicious version installed on the production server
  • You always have a Mojolicious version that works with your application
  • Creating a tarball that constains everything can be done by git

One of the disadvantages is that it is not easy to setup, but this post is going to fix that.

Keep reading ]]>
Perl Mojolicious git Fri, 29 Oct 2010 15:54:00 GMT http://showmetheco.de/articles/2010/10/how-to-include-mojolicious-in-your-apps-git-repository.html
Adding ETag caching to your Mojolicious app http://showmetheco.de/articles/2010/10/adding-etag-caching-to-your-mojolicious-app.html ETag caching is a kind of resource checksum. When the requested page changes, checksum changes too. In comparing to the last modified date it is well suited for dynamic content. A browser caches the page and on the next request sends the ETag from the previous response. Server checks if the page was changed and sends the updated page or 304 http status.

In Mojolicious this can be implemented with a simple plugin using after_dispatch hook.

Keep reading ]]>
Perl Mojolicious ETag Caching Thu, 28 Oct 2010 11:43:00 GMT http://showmetheco.de/articles/2010/10/adding-etag-caching-to-your-mojolicious-app.html
Building a multilingual website with Mojolicious http://showmetheco.de/articles/2010/5/building-multilingual-website-with-mojolicious.html For a long time there was the MojoX::Locale::Maketext module. But it is currently deprecated since Mojolicious has Mojolicious::Plugin::I18n in its core. Today we will try to use it to create a multilingual website.

Keep reading ]]>
Perl Mojolicious I18N Sun, 02 May 2010 19:38:00 GMT http://showmetheco.de/articles/2010/5/building-multilingual-website-with-mojolicious.html
Mojo::JSON::Any http://showmetheco.de/articles/2010/4/mojo-json-any.html While there is always Mojo::JSON out there, sometimes we need more speed. JSON::XS is the first thing that comes to mind. But they not only have different interfaces, but also work different with encodings.

Keep reading ]]>
Perl Mojolicious JSON Tue, 27 Apr 2010 17:16:00 GMT http://showmetheco.de/articles/2010/4/mojo-json-any.html
Mojolicious and WebSockets http://showmetheco.de/articles/2010/4/mojolicious-and-websockets.html So here is my first attempt to try this new awesome WebSocket technology. And since Mojolicious is already compatible I couldn't wait too long.

Keep reading ]]>
Perl Mojolicious WebSockets Sun, 18 Apr 2010 05:08:00 GMT http://showmetheco.de/articles/2010/4/mojolicious-and-websockets.html