[Web-SIG] Random thoughts
Gregory (Grisha) Trubetskoy
grisha at modpython.org
Sun Nov 2 16:37:21 EST 2003
On Fri, 31 Oct 2003, Greg Ward wrote:
> (BTW, whoever said that "web.client" and "web.server" are better names
> than "web.http" is right. I think. So far I've agreed with every idea
> I've seen on this sig, including the mutually contradicting ones. ;-)
A sidenote on this - lower case common words do not make good module names
because they are too easily overshadowed (mistakenly) by local variables.
E.g.:
from web import cookie
[ blah blah ]
cookie = request.get_cookie()
[oops, the cookie module just got inaccessible, must use kookie
or something ungly like this]
I think the best solution is to use upper case for module names like
"Cookie", "HTTP", "Client", etc.
Grisha
More information about the Web-SIG
mailing list