« My Color Conversion library, Colorspace, now available on NuGet - RGB, HSL, HSV, CMYK, XYZ, LAB | Main | Hands-On: Viewing Visio VSD files on your iPad and iPhone with Nektony VSD Viewer »
Thursday
Jul052012

Translating between Powershell, C#, and Python  

I do love using Powershell but because I have so much more experience with C# and Python switching back and forth can be challenging for me. I always forget some basic thing in powershell like the exactt syntax to create a list.

To help myself I created this Powershell / C# / Python Translation Guide. It allows you to see how simple task like “testing if a file exist” is performed across three different languages.

One Warning: I am still struggling with Microsoft Word's compulsion to change straight quotes to curly, smart quotes, so keep that in many when copy/pasting the C# or IronPython code.

(Click on the image below to go to the guide)

Snap050

 

 

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>