Python for web ?
Jay O'Connor
joconnor at cybermesa.com
Mon Dec 1 12:07:24 EST 2003
François Pinard wrote:
>[Jay O'Connor]
>
>
>>black wrote:
>>
>
>
>>>2. If the answer of above is yes, then can we programms with Python in
>>>both server and client side or either ?
>>>
>>>
>
>I guess yes to both. For my own usages, I use Python servers where
>Python code is easily put within HTML pages. If I really wanted to have
>Python executed on the client side browsers, I would likely follow the
>Jython path, as Jython is Python over Java, and some Web browsers are
>already able to run Java. (I did not really try Jython yet, however.)
>
>
I'd forgotten Jython.
>> First off, for any
>>such HTML embedded scripting you have to have a server that while parse
>>and execute the script.
>>
>>
>
>If you design carefully, the overhead could be quite negligible, besides
>the cycles burned by the very execution of scripts. I would not really
>see this as an impediment, in practice.
>
>
I was mostly yhinking availibility, not performance. If you are using
an ISP, then any server-side processing has to be enabled by the ISP and
that may or may not be possible depending on your ISP
>
>
>>More importantly, though, I'm not a big fan of the architecture of
>>having HTML code interspersed with script coding. I think you'd end
>>up with a better software design with a normal CGI-template approach
>>
>>
>
>Indeed. Templates allow a much nicer separation of the work between
>the Web designers and artists on one side, and programmers on the other
>side. Some templating systems are heavier than others (for both humans
>and machines), one has to be careful when choosing or designing them.
>
>
Same here. I do the backend programming and usually give the designer a
page (See these marks? Don't touch them, the rest of the page is
yours) Works well because I'm *not* a graphices designer and I get much
better results when I make it work and I give it to a friend to make it
look good.
More information about the Python-list
mailing list