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.
Full Threads Oldest First

Showing messages 1 through 11 of 11.

  • Python
    2003-11-19 20:22:57  Robbie Allen | O'Reilly AuthorO'Reilly Blogger [View]

    I wondered if someone might ask why I left out Python :-) It is also a viable option (as is a few other languages). But I see even fewer Windows Sys Admins using it. If you have a Python background and need to write scripts for the Windows environment, then you probably shouldn't look at anything else. You can accomplish pretty much the same things with Python as you can Perl on Windows. But I still prefer Perl :-)

    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?
    • 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 | O'Reilly AuthorO'Reilly Blogger [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-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).

    • Python
      2004-01-10 05:06:43  anonymous2 [View]

      KiXtart is an awesome scripting language for Windows Admin work.
      • Python
        2004-02-04 03:58:52  jennystuart [View]

        You can not comapare it with Perl !!!!

        Translated by Traduccione