On Wed, Aug 09, 2000 at 08:40:32AM +0100, Hildo Biersma wrote:
> IMHO, what the CGI module should have done is to (a) force people to use
> OO mode or (b) split into a procedural and an OO module, possibly
> generated from a common source code.  Supporting both at run-time is
> bizarre.

Internally, and from an efficiency standpoint, it is bizarre, but from an
interface standpoint it works rather well, and makes sense for the domain
it's in.  With a CGI query you have one set of data to work with (the
parameters as taken from STDIN and the environment).  The only time you need
instance information is when you pull query data from a file, which isn't
done too often from what I've seen.

Splitting the interfaces up into seperate modules isn't a bad idea, though,
provided one (the procedural module) uses the other (the OO module).
Maintaining, or even generating, seperate code bases would be annoying.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

Reply via email to