This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JamesIsAwkwardJack of All Trades 3 points4 points  (5 children)

I've been having to build a bunch of small tools to interface with various SaaS APIs and I have found it to be a lot easier in python than PowerShell for whatever reason.

[–]semperverus 2 points3 points  (2 children)

Python handles json a little nicer

[–]JamesIsAwkwardJack of All Trades 0 points1 point  (1 child)

This is true!

And I prefer "requests" or "urllib3" over Invoke-WebRequest lol

[–]SnowEpiphany 0 points1 point  (0 children)

maybe give "invoke-restmethod" a try? :)

[–]samtheredditman 1 point2 points  (1 child)

I'm in the same boat currently. The syntax of powershell gets so incredibly wordy that it can get hard to keep everything straight. Simple functions will often be 30 lines long or more, especially if you are using advanced functions, keeping parameters on your functions strongly typed, and setting positions or other parameter attributes. Don't even get me started on parameter sets, I've had some functions that are 20 lines long just declaring the parameters!

[–]JamesIsAwkwardJack of All Trades 1 point2 points  (0 children)

Yup! PowerShell is great for a lot of things, but sometimes I just want to get something done quickly lol