Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: CGI::Application - A little too lazy?

by samtregar (Abbot)
on Aug 07, 2005 at 15:43 UTC ( [id://481692]=note: print w/replies, xml ) Need Help??


in reply to CGI::Application - A little too lazy?

It looks to me like you traded one bit of repetitive typing (adding your mode to the run_modes list) for another (adding rm_ to the start of every runmode). I'd wager that you'll type the run mode names often enough in a complex CGI::App to make this a bad trade-off.

-sam

  • Comment on Re: CGI::Application - A little too lazy?

Replies are listed 'Best First'.
Re^2: CGI::Application - A little too lazy?
by Tanktalus (Canon) on Aug 07, 2005 at 15:55 UTC

    Oh, I don't know about that. The frustration in failing to remember to update my call to run_modes whenever I add a new run mode function is probably worth those extra few letters on each and every function name. It can save me minutes of debugging time, which is way less effort than typing three extra characters.

    Further, by the principle of keeping scope as minimal as possible, everything to do with a given run mode can be kept to just that function - I don't need to remember to go to the top (or bottom) of my module to add it to another data structure elsewhere. Having to set up run modes has to be my biggest issue with using C::A. Not that I have a better solution, mind you. It just is.

Re^2: CGI::Application - A little too lazy?
by friedo (Prior) on Aug 07, 2005 at 16:13 UTC
    It looks to me like you traded one bit of repetitive typing (adding your mode to the run_modes list) for another (adding rm_ to the start of every runmode).

    That actually doesn't bug me, since I was already naming my runmode methods rm_whatever in order to differentiate them from non-runmode methods.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-26 03:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found