Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: CGI: Nodes vs State Machine

by Masem (Monsignor)
on Jan 15, 2002 at 23:14 UTC ( [id://139000]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI: Nodes vs State Machine
in thread CGI: Nodes vs State Machine

Right now the site IS a collection of CGI scripts that do individual states. Sure, it works, but even using a common routine module, a change in one part of the script might need updating elsewhere. I'd rather have a system where there is one common starting point for authenication checking, cookie collection, and the like, and similar exit point for rendering and logging, as to avoid code duplication. Providing such hooks such that the CGI functions are considered plugins, as opposed to common routines being plug-ins for the CGI, can make the code more uniform, and easier to update. Using CGI::Application with a huge state machine or a node system would handle both of these isssues.

-----------------------------------------------------
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
"I can see my house from here!"
It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://139000]
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: (5)
As of 2024-04-24 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found