No time to wait http://showmetheco.de/index.rss Just code Twist 0.1 Throwing and catching exceptions in Perl http://showmetheco.de/articles/2012/4/throwing-and-catching-exceptions-in-perl.html While many people still check every method's return value, parse die's string messages and think that exceptions should be avoided at all cost, I will try to convert all exceptions to objects, create the base exception class and catch them with simple eval without using CPAN (blasphemy!).

Keep reading ]]>
Perl exceptions Sat, 14 Apr 2012 00:00:00 GMT http://showmetheco.de/articles/2012/4/throwing-and-catching-exceptions-in-perl.html
Perl Mova and YAPC::Russia. 12-13 May http://showmetheco.de/articles/2012/3/perl-mova-and-yapc-russia-12-13-may.html Following Andrew Shitov's post I want to invite you to visit a Perl conference in Ukraine 12-13 May.

This year we are going to have some special guests: Tatsuhiko Miyagawa, Gabor Szabo, Florian Ragwitz, Peter Rabbitson, Torsten Raudssus and many others. If you still have any doubts read on, otherwise rush to the registration page http://event.perlrussia.org/yr2012/!

Keep reading ]]>
Perl events Fri, 16 Mar 2012 00:00:00 GMT http://showmetheco.de/articles/2012/3/perl-mova-and-yapc-russia-12-13-may.html
Found this Perl script on a defaced webserver http://showmetheco.de/articles/2012/2/found-this-perl-script-on-a-defaced-webserver.html So the other day one of our web servers was defaced and I found a Perl script that was used to clean up the logs and other leftovers. I opened it in vim and was like "What da ...". Let's go through the code with me.

Keep reading ]]>
Perl wtf Fri, 17 Feb 2012 00:00:00 GMT http://showmetheco.de/articles/2012/2/found-this-perl-script-on-a-defaced-webserver.html
Text::APL - streaming and non-blocking Perl template engine http://showmetheco.de/articles/2012/1/text-apl-streaming-and-nonblocking-perl-template-engine.html This is yet another template engine. But compared to others it supports non-blocking (read/write) and streaming output.

Keep reading ]]>
Perl template streaming non-blocking Sun, 29 Jan 2012 00:00:00 GMT http://showmetheco.de/articles/2012/1/text-apl-streaming-and-nonblocking-perl-template-engine.html
PocketIO vivification http://showmetheco.de/articles/2012/1/pocketio-vivification.html Since 0.10 PocketIO doesn't require Plack and has a new dependency Protocol::SocketIO.

Keep reading ]]>
Perl pocketio socketio Sun, 22 Jan 2012 00:00:00 GMT http://showmetheco.de/articles/2012/1/pocketio-vivification.html
Learning music notes with Perl http://showmetheco.de/articles/2011/12/learning-music-notes-with-perl.html So the other day I bought a MIDI2USB interface to my piano keyboard and as a programmer I was curious about sending back and forth those MIDI events. I decided to write a simple Perl game that can help to learn the music notes. The routine is simple. The random note is generated and printed out on the terminal (like D3), then you have to find that note on the keyboard and play it. If it matches you get ok, otherwise not ok. And so on. As always CPAN saved hours of my time.

Keep reading ]]>
Perl music notes Sun, 18 Dec 2011 00:00:00 GMT http://showmetheco.de/articles/2011/12/learning-music-notes-with-perl.html
Accessors are dangerous http://showmetheco.de/articles/2011/11/accessors-are-dangerous.html So commonly used accessors (setters/getters) I think are dangerous when overused or used without a caution. Here is a quick list why.

Keep reading ]]>
Perl accessors Fri, 18 Nov 2011 00:00:00 GMT http://showmetheco.de/articles/2011/11/accessors-are-dangerous.html
TDD Best Practices in Perl http://showmetheco.de/articles/2011/11/tdd-best-practices-in-perl.html In this article I've collected the best practices of TDD (Test Driven development) that help me in my work. I brought them together for the future reference, updates, sharing and discussion.

Keep reading ]]>
Perl TDD Fri, 04 Nov 2011 00:00:00 GMT http://showmetheco.de/articles/2011/11/tdd-best-practices-in-perl.html
Translating PSGI specification into russian http://showmetheco.de/articles/2011/9/translating-psgi-specification-into-russian.html We've started translating PSGI specification into russian https://github.com/vti/psgi-specs-ru. If you speak or know russian you are more than welcome to join. We use #ru.pm channel on irc.perl.org for discussions.

]]>
Perl PSGI translation russian Sat, 24 Sep 2011 00:00:00 GMT http://showmetheco.de/articles/2011/9/translating-psgi-specification-into-russian.html
PocketIO - realtime applications for Plack http://showmetheco.de/articles/2011/9/pocketio-realtime-applications-for-plack.html PocketIO is a SocketIO port from Node.JS to Perl. It allows you to write realtime web applications without worring about specific browsers features: from long-polling to WebSockets.

PocketIO is built on top of AnyEvent and Plack, runs smoothly on Twiggy. This way it can be easily combined with other nonblocking Plack apps.

PocketIO can be scaled using Redis pub/sub infrastructure.

Proved to work well in production with 100-150 simultaneous connections. Works just fine with TLS/SSL (via App::TLSme) too.

Check it out. On Github or now on CPAN.

]]>
Perl socketio Fri, 23 Sep 2011 00:00:00 GMT http://showmetheco.de/articles/2011/9/pocketio-realtime-applications-for-plack.html