Python or PowerShell ?

Matimus mccredie at gmail.com
Tue Jan 8 17:13:52 EST 2008


On Jan 8, 2:24 pm, Torsten Bronger <bron... at physik.rwth-aachen.de>
wrote:
> Hallöchen!
>
> josepharmbrus... at gmail.com writes:
> > I am all about using the right tool for the right purposes, [...]
>
> Which purpose?
>
> > I dug up one article from Google that talked about comparison but
> > that was about it.
>
> >http://www.simple-talk.com/sql/database-administration/comparing-pyth...
>
> This comparison is about a very narrow field; additionally, it is a
> field PowerShell was optimised for.

Also, the code looks like they took optimized PowerShell code, and
just hacked together something to do the equivalent Python. There
appears to be little or no attempt to create nice efficient Python
code. For a true comparison two things are missing. 1) The reverse, do
something in python and then try to write it in PowerShell. 2) be
diligent in doing as much as possible to make both versions as simple
as possible. Pick any two languages and I can make the argument that
either one is better than the other if I pick something that one
language is better at and spend as little time as possible writing the
other version.

That might be a good exercise. Anybody wanna attempt re-writing the
python examples in that article? Just one glance at it and I can see
it was written by a Python novice. Now, I don't think the finished
product will be as small as the PowerShell equivalent, but it might be
easier to read and will look a heck of a lot nicer than it currently
does.

Matt



More information about the Python-list mailing list