Re: Perl 5 Classes for the Web (CGI and libwww)
Martijn Koster (m.koster@nexor.co.uk)
Wed, 15 Mar 1995 08:39:59 +0000
> How fixed are the interfaces ? (or how open to changes is it ?)
Fairly; as I've said before this stuff has never been released, and I
am not in a rush; I'd prefer to get it all right first time.
> I think WWW::* is getting rather crowded with WWW::HTTP::*
> WWW::HTML::*, WWW::URL::*, plus, of course all the other WWW::*'s
> and it's only going to get worse.
>
> I'd strongly recommend using top-level names for the implementation of
> IETF standards-based objects:
>
> URL::* Base, Proxy
> HTTP::* Base, Header, Error, Date, Protocol, MIME
> HTML::* ... ? (bound to be lots eventually!)
>
> and use WWW::*
> for any non-standards based objects and assorted support code.
>
> This reorganisation creates much more room in the namespace and
> emphasises the important distinction between standards-based objects
> and other code.
>
> ** I know that this is a big change but I think it's important
> and this maybe the very last chance we have to do it!
>
> What do you think?
I've thought about this, and agree we need to structure it now if
ever. It's not that big a change, but as it is a change to unreleased
code :-)
The problem with the libwww-perl stuff is it's gatewaying nature;
WWW::Gopher would be very different (and maybe implemented in
terms of) IETF::Protocol::Gopher or whatever. Same with my
current WWW::File.pm for example.
I'm starting to think we may need a WWW::Lib (WWW::Client?
WWW::GatewayClient?) to group the libwww-perl5's HTTP.pm/File.pm/
Request.pm/Response.pm in, freeing up the namespace for "purer"
implementations.
> What do others think?
> > I see the HTML bits as separate.
> >
> Agreed. I have some very 'fancy' ideas for HTML generation.
> But I'm saving those for later... ;-)
:-) Good idea. I've got one or two things on my to-do list too :-)
-- Martijn
__________
Internet: m.koster@nexor.co.uk
X-400: C=GB; A= ; P=Nexor; O=Nexor; S=koster; I=M
X-500: c=GB@o=NEXOR Ltd@cn=Martijn Koster
WWW: http://web.nexor.co.uk/mak/mak.html