News for hackers. Stuff that matters.
Re:New Windows 10 Devices From Microsoft by ckozlowski on Tuesday October 06, 2015 @02:55PM (#10341404)
I'd agree it's a bit more to type out, but it does seem to make more sense from a readability perspective. And for those of us who didn't grow up with the UNIX shell to understand the reasons why things were kept so short, it's a bit easier to digest. (I do appreciate why bash is so short and succulent. =)

But really, taking the above into consideration, the might in powershell comes not from the terms used, in my opinion, but how it works on things. With grep for example, you're parsing a file. If say, you wanted to filter on that more, you'd be using awk to pick out parts of the text.

In Powershell, everything's an object. Everything's already an object, you don't need to pick the file apart to isolate the date, you just filter on the date object. It's got a data type.

That makes it really powerful, in my opinion.

(Example largely pulled from "Windows Powershell in Action". I really like this book, as it goes into detail to describe /why/ things are they way they are in PowerShell, because he wrote it. =) https://www.manning.com/books/windows-powershell-in-action-s...

Re:New Windows 10 Devices From Microsoft by dpark on Tuesday October 06, 2015 @04:00PM (#10341894)
> but it does seem to make more sense from a readability perspective

Not really, as everything is given an unreadable alias anyway, and many are given multiple aliases: Copy-Item -> copy,cp,cpi. So there are just more names to learn.

Re:New Windows 10 Devices From Microsoft by ckozlowski on Tuesday October 06, 2015 @04:18PM (#10342024)
You don't have to use the aliases though, and they don't tab complete (only the full name does)

Personally, I never use them. I saw them more as a help for people coming over from bash.

Re:New Windows 10 Devices From Microsoft by dpark on Tuesday October 06, 2015 @04:48PM (#10342264)
You do have to use them unless you work alone. I regularly see PS1 files that use the various aliases, as well as the fully-named commands.