473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Python or PowerShell ?


I am all about using the right tool for the right purposes, which is
why I have started reading the GettingStarted guide to PowerShell. I
am curious if any other pythoneers have ventured into the world of
PowerShell. Mostly, I am interested in grabbing perspectives on the
differences noticed from those that have working experience with using
both.

I dug up one article from Google that talked about comparison but that
was about it.

http://www.simple-talk.com/sql/datab...ba-scripting-/
Jan 8 '08 #1
5 6738
Hallöchen!

jo**************@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/datab...ba-scripting-/
This comparison is about a very narrow field; additionally, it is a
field PowerShell was optimised for.

Tschö,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: br*****@jabber.org
(See http://ime.webhop.org for further contact info.)
Jan 8 '08 #2
Torsten Bronger wrote:
Hallöchen!

jo**************@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/datab...ba-scripting-/

This comparison is about a very narrow field; additionally, it is a
field PowerShell was optimised for.

Tschö,
Torsten.
And adding to that, if you don't care about cross platform anyway, why
even bother with python? I am sure that MS has tools that can do in a
point and click kind of way all the things you might encounter.

--
mph
Jan 8 '08 #3
On Jan 8, 1:57 pm, "Martin P. Hellwig" <x...@xs4all.nlwrote:
Torsten Bronger wrote:
Hallöchen!
josepharmbrus...@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/datab...comparing-pyth...
This comparison is about a very narrow field; additionally, it is a
field PowerShell was optimised for.
Tschö,
Torsten.

And adding to that, if you don't care about cross platform anyway, why
even bother with python? I am sure that MS has tools that can do in a
point and click kind of way all the things you might encounter.

--
mph
I code mostly for Windows users, but I use Python almost exclusively.
Why?

1) Python is "free"
2) Microsoft Visual Studio is very expensive
3) Python is Open Source
4) Visual Studio is not Open Source
5) I can actually take the code from IDLE and refine it for my
purposes if it doesn't suit me. Good luck doing that with practically
anything Microsoft supplies.
6) With relative ease, I can go cross-platform with my code if
requirements change

I could go on. There are many good reasons to use Python (or some
other good open source language, like Ruby) even if you just program
for Windows.

Mike
Jan 8 '08 #4
On Jan 8, 2:24 pm, Torsten Bronger <bron...@physik.rwth-aachen.de>
wrote:
Hallöchen!

josepharmbrus...@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/datab...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
Jan 8 '08 #5
ky******@gmail.com wrote:
On Jan 8, 1:57 pm, "Martin P. Hellwig" <x...@xs4all.nlwrote:
<cut>
>And adding to that, if you don't care about cross platform anyway, why
even bother with python? I am sure that MS has tools that can do in a
point and click kind of way all the things you might encounter.
<cut>
>
I code mostly for Windows users, but I use Python almost exclusively.
Why?

1) Python is "free"
2) Microsoft Visual Studio is very expensive
3) Python is Open Source
4) Visual Studio is not Open Source
5) I can actually take the code from IDLE and refine it for my
purposes if it doesn't suit me. Good luck doing that with practically
anything Microsoft supplies.
6) With relative ease, I can go cross-platform with my code if
requirements change

I could go on. There are many good reasons to use Python (or some
other good open source language, like Ruby) even if you just program
for Windows.

Mike
Well if that are your requirements, which are all good ones btw, then
you have answered your own question :-)

--
mph
Jan 10 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: BartlebyScrivener | last post by:
The Windows Powershell is available, fka Monad. Any special Python tricks? Just breezing through the manual, they seemed to have borrowed from any language they wanted in making a new scripting...
5
by: Neil Chambers | last post by:
Hi All, I'm looking to see if it's feasible to use the SortObjectCommand included in the Microsoft.Powershell.Commands assembly. I have a Dictionary Dictionary<string, intd = new...
3
by: =?Utf-8?B?VGhvbWFzIFcuIEJyb3du?= | last post by:
1. Is there a dedicated discussion group for Windows Powershell? I couldn't find one, but that doesn't necessarily mean there isn't :-) 2. I'm just starting in on learning to use Powershell and...
6
by: Mesan | last post by:
Does anyone have an idea what it takes to administer DB2 through PowerShell? I want to write some scripts to automate my common DB2 management tasks and I'd really like to be able to use...
1
by: Alexander Vasilevsky | last post by:
Hi! How to debug Powershell commandlets? -- http://www.alvas.net - Audio tools for C# and VB.Net developers
3
by: sridhard2406 | last post by:
Hi I didn't find a forum for powershell so i'm my query here itself. I'm runnung a powershell script and i want to redirect the output to a xml after redirecting the output i need to search a...
3
by: shalong | last post by:
Hi all, I want to run a python script to create a large number of Exchange mailboxes. I am using the os.system("New-Mailbox.......) method. However if i try to execute the python script in...
1
by: =?Utf-8?B?YXVsZGg=?= | last post by:
i read the MS kb: Using Exchange Management Shell Commands With Managed Code http://msdn.microsoft.com/en-us/library/bb332449.aspx how ever i'm getting "{"No Windows PowerShell Snap-ins are...
1
by: SCRIPT KEEPER | last post by:
Hello, I am a complete noob and just starting off with csharp so I apologize for my basic question. I am wanting to start powershell from inside a batch script and then to pass the powershell args...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.