Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Catalyst and Handel

by Your Mother (Canon)
on Jun 17, 2013 at 21:34 UTC ( #1039474=note: print w/ replies, xml ) Need Help??


in reply to Catalyst and Handel

My question is: have I overlooked something? Did something change in Catalyst since the helpers were written that has caused this behavior? More curiosity now that I've goten it "working" than anything else.

The behavior of the index/default stuff changed significantly between 5.7 and 5.8, IIRC. Since Cat is on 5.9 it's a bit hazy. It's probably just an oversight on playing catch-up since the change was made before the most recent version of Handel was released. You might file a ticket if have time.

Catalyst is a solid and very deep framework that won't disappear soon and unless you are doing websockets or something it won't stop you from doing whatever you like. That said, it's not maintained well enough right now for its size (so I say). Most of the major core players have moved on and community activity has been lower for about 3 years. Might be expected for a mature kit. I have been using Catalyst in personal sites for 8 years and production code for 6; total of something like 15 applications. I doubt I will ever write another based in Catalyst though; not for myself anyway. And this snippet from the Test::Mojo doc gives a peek at the why-

use Test::More; use Test::Mojo; my $t = Test::Mojo->new('MyApp'); # HTML/XML $t->get_ok('/welcome')->status_is(200)->text_is('div#message' => 'Hell +o!'); # JSON $t->post_ok('/search.json' => form => {q => 'Perl'}) ->status_is(200) ->header_is('Server' => 'Mojolicious (Perl)') ->json_is('/results/4/title' => 'Perl rocks!'); # WebSocket $t->websocket_ok('/echo') ->send_ok('hello') ->message_ok ->message_is('echo: hello') ->finish_ok; done_testing();

Writing tests for Mojo is so easy it's goofy and it neatly fits with actual Mojo code. Tests for Catalyst are easy on one hand but they, in my view, are disjointed from Catalyst code and are difficult and arcane to do anything outside the beaten path.

I've come to believe that solid tests are the only way for an application to outlast the initial developer's infatuation with the project. Mojo also recaptures the clear brevity I so love about Perl.

Sidenote: Catalyst's biggest selling point has always been flexibility -- it's Ruby on Rails without having pre-laid *all* the rails. And one of the most attractive parts here was deployment flexibility. Plack/PSGI has mostly slain that beast.

Dancer isn't the only other game in town either. There are several microframeworks and others at a similar level like Amon2. There's nothing wrong with looking around and sampling as many as you like.


Comment on Re: Catalyst and Handel
Download Code
Re^2: Catalyst and Handel
by Anonymous Monk on Jun 18, 2013 at 08:36 UTC
    This was very helpful. Thank you! I've been looking in the direction of mojolicious lately. I have to get this app out yesterday so I won't be doing mojo on a real world project any time soon but definitely will be playing with it more. On the one hand I'm loving the at we are in where we can use Ajax to offload a lot of work and make smarter views. And web sockets will be great down the road. But I'm happy with a solid framework that easily provides building blocks like sessions and such at this point! Anywho. Thanks again!

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039474]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (15)
As of 2014-10-20 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (85 votes), past polls