[cgiapp] Number of rm's best practice (more)

2005-12-18 Thread RA Jones
Reading the thread on 'Good practices: how many run modes in an app' it is obvious my current application under development is going way over the 'recommended' upper limit of rm's. I know I need to break it into smaller units based around functionality, but how? At the moment my main

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread Jeff MacDonald
I'm at about the same stage of figuring things out as you are, I'd recommend looking into C::A::P::Dispatch, it can basically parse your query string, to know which module handles which runmode, combine that with AutoRunmodes and you get a pretty cool setup. Jeff. On 12/18/05, RA Jones [EMAIL

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread Cees Hek
On 12/18/05, Rhesa Rozendaal [EMAIL PROTECTED] wrote: use base qw/MyApp::Base/; or our @ISA = qw/MyApp::Base/; is functionally equivalent. I personally prefer the former, since it reads better. Although they are very similar, there is a minor difference that can be important in some

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread bradford
I'm liking this thread. But I have some elementary questions: package My::MainApp; use base qw/My::BaseApp/; # I already have this one; it handles sessions etc use My::MainApp::Admin; # contains the run modes dealing with admin functions use My::MainApp::News; # another example package of

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread Rhesa Rozendaal
[EMAIL PROTECTED] wrote: I'm liking this thread. But I have some elementary questions: package My::MainApp; use base qw/My::BaseApp/; # I already have this one; it handles sessions etc use My::MainApp::Admin; # contains the run modes dealing with admin functions use My::MainApp::News; #

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread RA Jones
On Sun, 18 Dec 2005, Jeff MacDonald [EMAIL PROTECTED] wrote: I'm at about the same stage of figuring things out as you are, I'd recommend looking into C::A::P::Dispatch, it can basically parse your query string, to know which module handles which runmode, combine that with AutoRunmodes and you

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread RA Jones
On Sun, 18 Dec 2005, Rhesa Rozendaal [EMAIL PROTECTED] wrote: Here's a sketch of my app structure as it is now. I show two parts, the main, formerly monolithic CgiApp, and one package with a set of run modes. package My::MainApp; use base qw/My::BaseApp/; # I already have this one; it

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread RA Jones
Hi Jesse, On Sun, 18 Dec 2005, Jesse Erlbaum [EMAIL PROTECTED] wrote: [lots of useful remarks] HTH, Yes it does - but only to muddy the already murky waters ;-) It is a counter argument to the one that suggests the fewer the better. Actually I've no real preference as yet, other than to

Re: [cgiapp] Number of rm's best practice (more)

2005-12-18 Thread Jeff MacDonald
yes , sorry about that. On 12/18/05, RA Jones [EMAIL PROTECTED] wrote: On Sun, 18 Dec 2005, Jeff MacDonald [EMAIL PROTECTED] wrote: I'm at about the same stage of figuring things out as you are, I'd recommend looking into C::A::P::Dispatch, it can basically parse your query string, to know