News for hackers. Stuff that matters.
Re:In defense of PowerShell by wvenable on Monday August 24, 2015 @06:07PM (#10113180)
I find Powershell extremely weird. We have a fair number of Powershell scripts for admin tasks and frankly I think they'd all be easier to understand if they were just written in C#.
Re:In defense of PowerShell by zub on Monday August 24, 2015 @06:25PM (#10113248)
Mhmm. I wrote a set of PowerShell scripts to do some basic deployment stuff a while back and I discovered...

- Timing issues with something as simple as "remove file," where the agreed upon Stack Overflow solution was to call it "a few more times until you didn't get an error."

- Broken implementations of recursive folder copy.

- Okay, we'll call upon "rm" and "rmdir" -- oh, PowerShell intercepts those and invokes the previously described buggy routines. (Eventually figured out that I needed to shell out completely.)

In the end I regretted writing these crummy house-of-cards PowerShell scripts.

[deleted]
Re:In defense of PowerShell by jfb on Monday August 24, 2015 @06:33PM (#10113285)
Well, to be fair, in 2002 it was far from clear that there were going to be millions of C# programmers.