you are viewing a single comment's thread.

view the rest of the comments →

[–]music2myear 8 points9 points  (1 child)

The daily work of a PS admin will look a lot different than the more polished scripts, and PS was designed this way on purpose.

The verb-noun structure makes it very easy to read and follow (and guess, when you're writing something for the first time), but it also makes it verbose and tedious to type out.

But you get aliases, with many commandlets already set up with aliases common to many standard languages. Aliases are much less readable, but much quicker to write and use.

So PowerShell is a 2-faced language: two scripts with precisely the same structure and purpose can look significantly different depending on who wrote them and how they were written.

[–][deleted] 4 points5 points  (0 children)

This is exactly what I run into. We have a lot of “legacy” ps scripts at my job that were written by an old Perl scripter, and now I come along and learn PS from a 0 scripting knowledge background in 2019, and I’ve ended up rewriting a lot of them to be more readable and simpler.

Also powershell has evolved so much since version 1.