Re: Mason + FastCGI

Hans Dieter Pearcey <[email protected]> Wed, 30 Sep 2009 21:41:42 -0400
Newsgroups gmane.comp.web.mason.devel
Message-ID <1254360212-sup-8394@glaive>
Excerpts from Pedro Melo's message of Wed Sep 30 17:35:16 -0400 2009:
> >  * I don't need a separate webserver-independent config file for my  
> > app
> 
> I don't understand this one.

It's a reference to ConfigLoader (vs. e.g. PerlSetVar in httpd.conf).

> If it ever does this, I would rather write mod_rewrite rules, in C,  
> fast, than deal with that on the App site.

Of course, then you're tied to a specific webserver; this also assumes that the
URL is the only difference, as opposed to needing to munge query string
arguments or provide different defaults for them or whatever.

> I guess I failed to explain myself. My main point was exactly that: I  
> don't need most of what Cat does for me.

OK; then why not use only what you need?  It'd be trivial to write an app whose
Controller::Root had a single action (at /, with any number of args) that
handed off to a Mason view to do the real work.  You get fastcgi and the
standalone server for free AND the Mason component reloading that you enjoy so
much.

(Even better would be for Mason to work on PSGI, but that's not a useful
suggestion right now.)

> >  My intent is
> > to correct what I think are your mistaken impressions about Catalyst,
> 
> Well, maybe I'm mistaken about Cat, I don't think so, I do know it  
> pretty well. I might have failed to explain my reasons on my first  
> attempt. I hope to have done better this time.

At first you sounded like someone who'd heard a few things about Catalyst and
maybe tried it once and thought it was for Big Enterprisey Projects but not for
smaller things.

It's a relief to find that this isn't the case, because it didn't fit with my
vague memory of you.

hdp.

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf