Discuss Python vs Javascript in the Python Programming forum on Dev Shed. Python vs Javascript Python Programming forum discussing coding techniques, tips and tricks, and Zope related information. Python was designed from the ground up to be a completely object-oriented programming language.
Receive the tools necessary to be the rock star of your field. Our 12-month program teaches you the evolving world of multi-channel marketing as well as the complex issues and opportunities found in the industry.
ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month! Download and Activate to enter!
Web development can be a daunting task, even for specialists. There is a lot of information to absorb and a lot of technologies to learn in order to manage a superior website. When trying to learn the ropes, developers need a reliable source to introduce new ideas that can be easily implemented. When working on large projects, even web veterans may run into a technology or an aspect of a technology that they are unfamiliar with.
Posts: 350
Time spent in forums: 2 Days 11 h 53 m 20 sec
Reputation Power: 26
Python vs Javascript
I know you can use Python as a scripting language instead of javascript for your web-browser's html files. For some odd reason I lost all the original information on this. Can anybody help me in refreshing my memory.
Posts: 75
Time spent in forums: 20 h 48 m 29 sec
Reputation Power: 8
Quote:
Originally Posted by Dietrich
I know you can use Python as a scripting language instead of javascript for your web-browser's html files. For some odd reason I lost all the original information on this. Can anybody help me in refreshing my memory.
Well I have read about this too. You can use Mark Hammonds Win32 extensions to allow you to use Python as a client-side scripting language in Internet Explorer. Also the Grail browser lets you use Python for client-side scripting and even applets. Searching on usenet turns up quite a few results: comp.lang.python
Posts: 1,585
Time spent in forums: 2 Weeks 4 Days 2 h 58 m 23 sec
Reputation Power: 1371
Quote:
Originally Posted by Markup
Well I have read about this too. You can use Mark Hammonds Win32 extensions to allow you to use Python as a client-side scripting language in Internet Explorer
This used to be true in earlier versions of Python, which had a restricted execution mode (rexec module). This was removed in (I think) version 2.2, since changes to the language made it insecure. You would also need the user to have Python installed, which would severely limit the audience for your website.
However it may be possible to use py2exe to create a python ActiveX plugin, since this is essentially a COM server. I have never done it though, so I don't know how much work it would involve or even if it is possible. It would also limit the audience to people who use IE and are dumb enough to give websites total control of their PC (admittedly that's a lot of people).
Posts: 85
Time spent in forums: 22 h 2 m 50 sec
Reputation Power: 7
Quote:
Originally Posted by SimonGreenhill
No, you can't replace (client-side) javascript with Python. You can replace a server-side language (PHP/Perl/Asp/*.Net) with Python
--Simon
ok so is it possible to make a forum wit python instead of php?
if so how much work is involved...im still a newbie so reading material of sum sort of this python server-side programming wud do jus fine....or damn goood explainations lol ty
Posts: 461
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 22
Quote:
Originally Posted by Rc2001
ok so is it possible to make a forum wit python instead of php?
if so how much work is involved...im still a newbie so reading material of sum sort of this python server-side programming wud do jus fine....or damn goood explainations lol ty
well yes actually, it is quite possible! I am doing that right now. Well actaully I am creating a whole web site out of python with mod_python. Forum included. My site: http://gurusnetwork.org/. I decided to go with python since i personly do not like php. I have used php for quite a few years and i just never have been happy. However with python I am having to make everything from scratch because there really isn't much done yet for python and web work, well publicly. If you would like to view my source code(its going to be released when my web site is a bit more operational anyway) just email or im me and i will happly get it together for you to look at.
I think its probbaly a lot more involved than wiht php since with php there is a lot of code that has already been done. Like a bbcode translator, you can use anyones with your wbe site. I personly havn't found one yet for python except for the one i wrote. But its fun, if oyu like python then its even better. Its probably best if you can get a bit of help though, which i am always looking for, since there truly is just a lot of stuff to be done.
However good luck if you need anything I feel I am getting pretty good with the psp handler.
Posts: 461
Time spent in forums: 4 Days 12 h 36 m 28 sec
Reputation Power: 22
umm, i feel that it is easyer, but then again I am about 100x better at python than i am at php. I think it is a huge joice of option. I think that php has a lot more tools built in for just web work, while python you need to get things like mod_python or mysqldb and such to make it truely usfull. However that really isn't more work. Just part of the server set up proccess. It is also hard to find web hosts that offer mod_python, however one that I know of is http://cubichosting.net I know that because I use them as a mirror for my web site. I also run my own server at home because it truly is hard to find servers. But cubic hosting is a great host.
The outcome can be however you want it, to get it this complex as the dev shed forum. But it is possible. This one is writen in php, but it can be done just the same in python, just depends on how you do it.
Posts: 85
Time spent in forums: 22 h 2 m 50 sec
Reputation Power: 7
Quote:
Originally Posted by CyBerHigh
umm, i feel that it is easyer, but then again I am about 100x better at python than i am at php. I think it is a huge joice of option. I think that php has a lot more tools built in for just web work, while python you need to get things like.....