RE: [Catalyst] two Catalyst flaws

2008-01-04 Thread Peter Edwards
Dave Rolsky> >I did something sort of similar for VegGuide.Org, except the config simply >lives in a single module (VegGuide::Config) that is designed to be usable >for Catalyst and outside of it. That sounds like a better plan :) Nice app BTW, thanks for releasing it. Cheers, Peter http://per

RE: [Catalyst] two Catalyst flaws

2008-01-03 Thread Dave Rolsky
On Thu, 3 Jan 2008, Peter Edwards wrote: In the latter case there's still some work to do if you want to have a shared config file but that's not too hard to figure out. There's a Catalyst advent calendar article showing how to do this: http://catalyst.perl.org/calendar/2007/14 I did someth

Re: [Catalyst] two Catalyst flaws

2008-01-03 Thread Mike Whitaker
A normal "mistake" of managing web servers these days is to put tons of web applications onto one server and letting them fight over resources. Servers (and memory in particular) is a low cost factor (compared to development costs). Then why not give your lovely web application some GB's of

RE: [Catalyst] two Catalyst flaws

2008-01-03 Thread Peter Edwards
Simon> >Catalyst is a web application framework. You have two choices: > >1. Use a simple LWP type script in cron to call the necessary web URI >and let the server do the heavy lifting; or > >2. Make sure you encapsulate the business logic in the model and not in >the controller, then you can jus

Re: [Catalyst] two Catalyst flaws

2008-01-03 Thread Simon Wilcox
Fayland Lam wrote: the first is to load all modules at beginning. I want to ask why? for $c->forward()? I think $c->model() can load when called. why I hate this is because it eats too many memory. one of my App has 80+ pm then it takes 150+M. I can't afford that! You don't mention how you ar

Re: [Catalyst] two Catalyst flaws

2008-01-03 Thread Chisel Wright
On Thu, Jan 03, 2008 at 05:51:47PM +0800, Fayland Lam wrote: > the second one is hard to use model in cron pl. I know we can do something > like my $c = MyApp->prepare(); or Catalyst::Model::Adaptor (trust me, > that's not so easy or fast) If you're _only_ wanting to use the model, why not just

Re: [Catalyst] two Catalyst flaws

2008-01-03 Thread Knut-Olav Hoven
On Thursday 03 January 2008 10:51:47 Fayland Lam wrote: > please don't blame me if I'm wrong here. just point it out and I'll > apologize :-) > > the first is to load all modules at beginning. I want to ask why? for > $c->forward()? I think $c->model() can load when called. why I hate this > is bec