mojotoad has asked for the wisdom of the Perl Monks concerning the following question:
Caveat: yes, I know it's wikipedia and all that entails, no I'm not trying to cause a stink.
I was recently perusing the wikipedia entry on MVC and saw an interesting snippet underneath the Perl section:
The most popular MVC for Perl is Catalyst. Catalyst borrows from other frameworks such as Ruby on Rails and Apache Struts.
Does anyone know if there's any justification for such a statement? What specifically, other than following an MVC pattern, does Catalyst borrow from Rails?
I'm honestly curious and wouldn't know myself since I haven't followed the development history of Catalyst (or Rails) in enough detail.
Cheers,
Matt
Re: Does Catalyst Borrow from Rails?
by dsheroh (Monsignor) on Feb 06, 2007 at 17:40 UTC
|
I was curious about your question so I did a little googling, hoping to at least find out which is older. Then I ran across http://www.perl.com/pub/a/2005/06/02/catalyst.html which statesRuby on Rails was another inspiration... Features we borrowed from RoR are the use of helper scripts to generate application components and the ability to have multiple controllers in a single application. So there you have it, right from the fingers of an (apparent) Catalyst developer: Yes, they did borrow some things from Rails. | [reply] |
Re: Does Catalyst Borrow from Rails?
by dragonchild (Archbishop) on Feb 06, 2007 at 17:52 UTC
|
Having asked for them, I can attest to at least two features found in RoR that are in Catalyst:
- Volatile flash (vs. the more stable stash)
- Automatic param parsing / composition from attributes
This is a "Good Thing"(tm) - just because someone else came up with the good idea doesn't mean that you aren't allowed to use it yourself.
My criteria for good software:
- Does it work?
- Can someone else come in, make a change, and be reasonably certain no bugs were introduced?
| [reply] |
|
| [reply] [d/l] |
Re: Does Catalyst Borrow from Rails?
by tinita (Parson) on Feb 07, 2007 at 09:25 UTC
|
| [reply] |
Re: Does Catalyst Borrow from Rails?
by jimt (Chaplain) on Feb 09, 2007 at 14:02 UTC
|
My first thought was, "I sure hope so."
Caveats before I start yapping - I have only minimally looked at both RoR and Catalyst, so I know nothing specific about either of them, only general handwaving things.
Regardless, I'm positive that RoR got some things right. Like, really really really right. Beautifully elegantly totally right. So sure, borrow those concepts, adapt them, re-use them.
I'm also positive that RoR got some things wrong. Like, really really really wrong. Horribly terribly totally wrong. So look at those concepts, figure out how not to make the same mistakes, and then avoid them.
For something as big and as ballyhooed as Catalyst has been, I'd hope that the people involved are constantly looking at the competition, even if it's just cursory glancing ("Yeah, we do that already...ooh, but that's a cool idea! Hey, maybe we could do this other thing, too!"), since it will always lead to a better product.
I'd be much more concerned if the quote were something like "Perl programmers developed Catalyst in a vacuum, completely disregarding all similar items in other platforms."
| [reply] |
Re: Does Catalyst Borrow from Rails?
by phaylon (Curate) on Feb 07, 2007 at 14:24 UTC
|
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
| [reply] |
|
| [reply] |
|
| [reply] |
|
|
|
|
|