| Article: |
VBScript or Perl? | |
| Subject: | Python | |
| Date: | 2003-11-19 05:00:18 | |
| From: | anonymous2 | |
|
Response to: Why not JScript?
|
||
| Python fits very well in the windows world (can talk to dll's, COM, etc) and has cleaner object orientation than perl. Python stresses clarity and simplicity, yet it is also a very powerful language. | ||
Showing messages 1 through 11 of 11.
-
Python
2003-11-19 20:22:57 Robbie Allen |
[View]
-
Python
2003-12-02 12:20:45 gjansen [View]
The interactive environment now supported by ActiveState is perhaps the best reason to go with Python in the Windows environment. (Certainly it compares favorably with running perl -e from a prompt). The COM interface is very straightforward to use, and wxWindows makes it easy to put up a good-looking GUI.
I still find that I use Perl almost exclusively in the Unix environment, simply because I had several years of Perl experience before I ever took up Python.
-
Python
2003-11-19 10:45:07 anonymous2 [View]
"and has cleaner object orientation than perl"
But why would this matter in a scripting environment? No one is going to write a class for a 20-30 line utility script.
- Joe -
Python
2003-11-20 06:28:23 mahansen [View]
Code reuse would be the biggest reason to write a class for a utility script. Maybe you want to do something similar in another script, you can use that class in it.
Also, you'd be surprised how many 20-30 line utility scripts grow into monster apps. -
Python
2003-11-20 13:44:28 Robbie Allen |
[View]
I've written a 40,000 line web app in Perl which was loosely OO. Not to say it is a great example of Perl OO in action, but it can be done. -
Python
2004-01-01 17:18:12 anonymous2 [View]
Even a small set of perl 1-liners represent a powerful integration of near complete programs, so you can write a complete operating system in less than 40K lines of perl.
So, what exactly were you trying to attempt/achieve in those 40,000 lines of perl code ? I am extremely curious to know :-)
-
Python
2003-12-01 11:59:47 anonymous2 [View]
40,000 lines! My GOD man you should be ashamed of yourself! -
Python
2003-12-01 12:02:33 Robbie Allen |
[View]
:-)
-
Python
2003-11-19 08:32:48 wjgilmore [View]
Agreed, Python does work quite well in the Windows environment. O'Reilly published a Python/Windows book, called "Python Programming on Win32" if I remember correctly. Another great book on Python is "Practical Python", by Magnus Hetland, published by Apress. (disclaimer: I was a tech editor).
Jason
http://www.wjgilmore.com/



A good follow-on question to this article is Perl or Python? (in the Windows environment) If you knew both, would one be better than another?