in reply to Does Catalyst Borrow from Rails?

Surely Catalyst borrows some things from Rails. With Rails being "the hype," it's pretty impossible to design and maintain a web framework without hearing stuff about it. For me personally, I'm much more enthusiastic about the things Catalyst did not do because they saw how it worked out in Rails. The differences aren't that small, and they should be what matters in decisions about what framework to use.

Update: PS: Why didn't you just ask in the IRC channel?


Ordinary morality is for ordinary people. -- Aleister Crowley

Replies are listed 'Best First'.
Re^2: Does Catalyst Borrow from Rails?
by jettero (Monsignor) on Feb 07, 2007 at 14:27 UTC

    I would enjoy it if you elaborated on "did not do..." Which features did you see in RoR that the catalyst folks chose to skip? why do you think?

    -Paul

      I never really used Rails, but there were some discussions about that matter. And I don't mean "features" alone, but rather all design decisions in general. AFAIK Catalyst's dispatching is way more advanced than Rails routes (if my memory doesn't fool me and they call it that). The ActiveRecord vs. DBIx-Class discussions also bring up some points regularly. As said, I can't really provide details, because of my lack of knowledge about Rails. That's why I use a framework, I don't have to have the knowledge myself :) Well, that and I don't like Ruby's syntax, but that's rather personal.

      Ordinary morality is for ordinary people. -- Aleister Crowley
        Catalyst creates routes, just like Rails. It just does so through method decoration as opposed to a configuration mapping. There are excellent reasons to use both mechanisms and there is (was?) a project to bring Rails-style routes to both Catalyst and CGI::Application. (I think C::A now has routes, but I'm not sure about Catalyst.)

        The biggest benefit of routes, imho, is that you can see everything all at once. I've spent time trying to figure out why my Catalyst routing wasn't working. Catalyst also has a few hacks in how the routing is done in order to support all the different situations that have been thrown at it. Rails does, too - just different ones.

        To my mind, Catalyst truly is the best of both worlds - I have the power of CPAN married to the power of Rails.


        My criteria for good software:
        1. Does it work?
        2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?