News for hackers. Stuff that matters.
Re:Microsoft plots the end of Visual Basic by Ididntdothis on Friday March 13, 2020 @07:55PM (#22571896)
"I would love to learn why people think that power shell is ugly, especially comparing with bash. "

I don't think people compare it with bash, but with more modern languages.

Re:Microsoft plots the end of Visual Basic by gerdesj on Friday March 13, 2020 @08:44PM (#22572102)
One criticism I've seen and levied myself is the sheer amount of typing:

[PS] C:\> Get-MyReallyLongFunctionName -Server furtle

$ lol --floop

PS is fine but it takes ages for the bloody thing to wake up and notice command completion. It is like dealing with a teenager in bed.

Actually, I have no problems with PS but with MS's idea of search as deployed to users.

(I run KDE on Arch. Search is faster than I can blink)

Re:Microsoft plots the end of Visual Basic by Ididntdothis on Friday March 13, 2020 @08:58PM (#22572194)
Verb-first was also a bad choice. When I type “get” I am getting thousands of suggestions which makes autocompletion pretty useless. There is also no way to find all cmdlets that deal with active directory. It would be much better if I could type “AD” first and then get all cmdlets that deal with active directory.
Re:Microsoft plots the end of Visual Basic by InvaderFizz on Friday March 13, 2020 @09:12PM (#22572305)
Try:

  man *-AD*
Re:Microsoft plots the end of Visual Basic by ygra on Sunday March 15, 2020 @02:42AM (#22581809)
You want Get-Command here, usually, not Get-Help.
Re:Microsoft plots the end of Visual Basic by kuzimoto on Friday March 13, 2020 @09:39PM (#22572441)
I don't think it's that bad. Better than bash where every command has is either something archaic or just what whoever wrote it wanted it to be. It better resembles English than the other way around. Plus you can use "get-command "something`" which gives you everything that contains that string, or search for a certain provider for all commands related to a specific thing.

Autocompletion still works, just type first letter or two after get and filter most stuff out.

Re:Microsoft plots the end of Visual Basic by vbezhenar on Saturday March 14, 2020 @07:08AM (#22574462)
Powershell was made to allow launching arbitrary programs with redirections and pipes. That's why some language choices were made and that's why I'm interested in comparison with bash.