RSS and Atom feeds in Catalyst

The Catalyst cookbook provides two recommendations for adding RSS feeds to your application:

  • Create an XML template, populate the stash with data, let your template view render it, then override the Content-Type: header of your view with Catalyst::Response.
  • Use an XML::* feed module to render the XML, manually set the Catalyst::Res…
  • Syntax highlighting for

    I also love syntax highlighting. To some, it's superfluous. To others, it's downright confusing. But for those of us who use it all day every day, it's an essential tool that helps us read and understand code more quickly and with less effort.

    It's always been a minor complaint that does not put syntax h…

    Subclassing Tricky Non-Moose Classes: Constructor Problems

    We have a non-Moose class but want to make a Moose subclass of it. In the first post, "Subclassing Tricky Non-Moose Classes: Don't Do It", we looked at a way to extend non-Moose classes without actually subclassing them. It is pretty straight-forward, and typically will cause less headaches.

    Sometimes that method might not meet your needs, and you might really want to make a Moose subclass of a non-Moose class. This tutorial will get you started with a …

    Subclassing Tricky Non-Moose Classes: Don't Do It

    First, step back and consider if we really need a subclass.

    Don't subclass

    There are probably some good arguments against subclassing non-Moose classes with a Moose class that center on principles of good design, and applying the most suitable design patterns. From a practical standpoint, though, there's a very simple reason to avoid it: using Moose to subclass a non-Moose class is fraught with "gotchas." We'll see ="…

    The Future of Perl Documentation (part 1 of 3)

    Perceived Extinction - Some context

    Perl is tired, old, crusty, and ready for the farm where its spirit can run free with the likes of COBOL and Fortran.

    Or at least that's what some people outside the community say.

    We know this couldn't be farther from the truth: Perl 5 is alive, "Modern Perl" is buzzing on everyone's lips, Moos…