Hacker News new | ask | show | jobs
by userbinator 52 days ago
I'm surprised they didn't call it Run-AsAdministrator or some other awkward Microsoft-ism.
5 comments

Maybe because that exists already? (and is actually more useful)

https://learn.microsoft.com/en-us/previous-versions/windows/...

I spent some time years ago going through a PowerShell course by the guys who wrote it. They explained their thought process and it actually made a lot of sense. Descriptive verb-noun naming to makes scripts readable, with aliases to make things quick and easy in the shell.

It’s easier to understand than names like grep, which require the user know ed and decades old history to figure out that it means global regular expression print. Without any *nix history, Select-String with an alias of sls, can make more intuitive sense and be easier to remember. The alias is also faster to type.

That sounds like PowersHell is similar to Esperanto - systematic and regular, but otherwise awkward and just doesn't have the staying power of a real, organically-developed language.

There's no need to "understand" "names like grep"; you learn it as a language like any other. If you aren't thinking of "grepping" (or cd'ing, ls'ing, fsck'ing, etc.) naturally and are always trying to translate the words into English (or some other language), you're doing it wrong.

That would imply it is written for PowerShell specifically ([1]), and would come with several expectations (like returning PSObject objects, and other good practices).

[1]: https://learn.microsoft.com/en-us/powershell/scripting/devel...

That would imply it is written in PowerShell. https://learn.microsoft.com/en-us/powershell/scripting/devel...
I strangely cannot flag my own posts. Can you delete that comment (and this comment you’re currently reading), since it’s a duplicate?
That would be consistent, which is not something Microsoft is capable of.