Herding a Cat with Antlers - Catalyst 5.80

Catalyst 5.80 - the new major version allows you lots of new ways to build applications. This talk looks at some of the technologies you may want to use, and points out some examples and other modules
…

Catalyst 5.80 - the new major version allows you lots of new ways to build applications. This talk looks at some of the technologies you may want to use, and points out some examples and other modules you might want to look at on CPAN.

14.
Delegation
• Attributes and the ‘handles’ feature are as
powerful, if not more powerful than roles.
• Delegation is often better than inheritance
or composition
• Delegate all of the methods required in an
‘interface’ role

32.
Catalyst::TraitFor::XXX:YYY
• CatalystX::SimpleLogin::TraitFor::Controller::Login::WithRedirect
• Catalyst::TraitFor::Model::DBIC::Schema::Replicated
• Catalyst::TraitFor::Controller::DBIC::DoesPaging
• Don’t have to use CatalystX::Component::Traits - just roles, with
is ﬁne if you don’t need to set them via conﬁg..

40.
CATALYST IS JUST
GLUE
• ALL of your business logic should exist
OUTSIDE CATALYST
• If you’re doing heavy lifting, it should
happen outside your web application
process.
• Your availability being AT BEST that of
remote services is a bad world.

41.
This does mean
• You develop independent components
using Moose / Roles / etc
• You tie these into Catalyst as models with a
thin layer of glue.
• You reuse common workﬂows in Catalyst
between your apps