Re: 回复: I wander which is better? JSP or Python? And is there a place for JSP?

戴清灏 rogerdai16 at gmail.com
Tue Jun 29 03:41:44 EDT 2010


Sorry for having delayed to reply.
Your response really inspired me.
I am a sophomore student in China,My major is computer network.
Since so,besides I really love web development,I should focus more
attention on Python as it means a lot to web applications.
Python is so laconic that it makes me feeling reading a poem instead of codes.
Thanks
Roger
>From a college in China
:)

2010/6/28, Chris Rebert <clp2 at rebertia.com>:
>> ------------------ 原始邮件 ------------------
>> 发件人: "Chris Rebert"<clp2 at rebertia.com>;
>> 发送时间: 2010年6月28日(星期一) 中午1:09
>> 收件人: "Roger"<rogerdai16 at gmail.com>;
>> 主题: Re: I wander which is better? JSP or Python? And is there a place for
>> JSP?
>>
>> On Sun, Jun 27, 2010 at 9:49 PM, Roger <rogerdai16 at gmail.com> wrote:
>> > As I plan to study JSP, I find it extremly complicated and a part of
>> > J2EE.
>> > I did not attend to get the whole of J2EE.
>> > I hope anybody can describe the future of JSP.
>> > Is there a place for JSP?
>>
>> This is python-list/comp.lang.python; we discuss the **Python**
>> programming language and related topics here. Your question is about
>> **Java** and has nothing to do with Python.
>
> 2010/6/27 rogerdai16 <rogerdai16 at gmail.com>
> Subject: I wander which is better? JSP or Python? And is there a place for
> JSP?
>> Oh, sorry.
>> I was just to make a comparison between Python and JSP.Will Python take the place of JSP?
>
> Ah, my apologies, I neglected to notice your post's Subject, which is
> where you establish the relation to Python. (I hate it when people put
> critical info in the Subject but don't explicitly mention this in the
> message body...)
>
> You're asking for a very apples-and-oranges comparison. Python is an
> entire general-purpose programming language (as is Java), whereas JSP
> is (approximately) a Java web templating technology, something much
> more specific.
>
> So, could Python /itself/ replace JSP? No, of course not; like I said,
> apples and oranges.
> Python Server Pages (http://en.wikipedia.org/wiki/Python_Server_Pages
> ) vs. JSP would be a more apt comparison. However, PSP per se doesn't
> seem to be used much. Also, drop-in replacing JSP with PSP or similar
> would involve extra complexity in trying to integrate the two
> languages together, and thus probably not be worth the trouble
> (although Jython might remedy this somewhat).
>
> So, zooming out further in order to move towards more sensible
> comparisons: Can Python replace Java in web applications? Yes, surely.
> Many significant, successful web applications have been written in
> Python using various Python web frameworks (e.g. Django), which often
> include their own Python-based templating system. Is it a good idea to
> port something from Java to Python just for the sake of using Python?
> Probably not; if it ain't broke, don't fix it (though that's not to
> say don't refactor it).
>
> Zooming out even further, hopefully to the level of question you meant
> to ask: Could/Will Python displace Java (and thus JSP) for web
> programming?
> Who can say? It would be something of a religious debate.
> In the abstract, yes, I think it could; the requisite mature,
> well-designed web frameworks are already extant. Over time, they might
> attract more newbies than Java frameworks (although I am admittedly
> only guessing here based on Java stereotypes).
> Realistically, no, it won't, except perhaps in the extreme long run
> (Java has too much momentum); but we Pythonistas are having enough fun
> doing our own web stuff in Python-land that we don't need to try and
> be hyper-competitive and actively usurp Java's existing niche in the
> web application ecosystem.
>
> Cheers,
> Chris
> --
> I hope this thorough answer sufficiently compensates for my improperly
> bitey initial response.
> http://blog.rebertia.com
>



More information about the Python-list mailing list