Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Does Catalyst Borrow from Rails?

by phaylon (Curate)
on Feb 07, 2007 at 15:19 UTC ( [id://598794]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Does Catalyst Borrow from Rails?
in thread Does Catalyst Borrow from Rails?

Catalyst creates routes, just like Rails.
Could you elaborate on that? Maybe I didn't understand what routes are then. I am aware that all frameworks map resources to some kind of action, function or method, but the way they do this, as well as the flexibility, are what matters. Does Rails have a pendant to what Catalyst calls a Chained dispatch type? Does it have an equal potential as uri_for at his hand?
I think C::A now has routes, but I'm not sure about Catalyst.
I think you mean "Rails-style routes" here, because otherwise this would contradict your first statement.
I've spent time trying to figure out why my Catalyst routing wasn't working.
Again, no idea what "routing" means in Catalyst sense. You mean your actions weren't found under the locations you expected? I usually just check the debug output and see where my error was :)
To my mind, Catalyst truly is the best of both worlds - I have the power of CPAN married to the power of Rails.
I can understand that. Though for me, nothing in Rails really appeals to me. My design decisions (or environmental constraints) mostly don't conform to what DHH sees as the right way to do things. And my being more comfortable with Perl syntax than the Ruby one (they're not that different, but it's the small things) is one of the reasons I never really used Rails. Other than that: Full Ack, Catalyst is the best :)

Ordinary morality is for ordinary people. -- Aleister Crowley

Replies are listed 'Best First'.
Re^6: Does Catalyst Borrow from Rails?
by dragonchild (Archbishop) on Feb 09, 2007 at 01:24 UTC
    Rails does provide chaining as well as a uri_for(). I don't remember which framework I added uri_for to - I think it was C::A - mst probably figured that one out on his own. :-)

    Yes - I did mean configured routes vs. discovered routes.

    Yes, I do look at the debug output to figure things out. However, it's not always as simple as just looking at some config file. The ability to use both would be nice.

    I prefer Ruby's clean OO over Perl's rather verbose version. However, as tye has said before, the lack of strictures makes Ruby a second-class language, no matter what else it offers. That its syntax is closer to Javascript's would normally make it a better candidate for RIAs than Perl, but the lack of strictures is just a deal-killer.


    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?
      Again, what is 'configured routes vs. discovered routes'? What *are* routes?
      Yes, I do look at the debug output to figure things out. However, it's not always as simple as just looking at some config file. The ability to use both would be nice.
      Umm, what debugging information would you expect in your configuration file?

      Ordinary morality is for ordinary people. -- Aleister Crowley
        A configured route is one you laid out in a config file. A discovered route is one that comes about through inspection of the methods' metadata. In other words, Rails-style vs. Cat-style.

        As for the info, a properly laid out routes config file will provide, through inspection, a lot of information that is more difficult to find in a Cat-style layout.


        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?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-18 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found