13 ms·
> Wouldn't it be nice to write shell scripts with objects and data structures? That's PowerShell - https://docs.microsoft.com/en-us/powershell/module/microsoft
by rwbhn 5y ago
> Wouldn't it be nice to write shell scripts with objects and data structures?
That's PowerShell - https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pipelines?view=powershell-7.1 https://docs.microsoft.com/en-us/powershell/module/microsoft...
- ablyveiled 5y agoBegs the question- is it nice?
- tyingq 5y agoIt is nice, but they chose to leave some odd legacy stuff around. For example, you can make a Win32 GUI app, but the console window still shows. So, you can hide it, but it flashes briefly anyway. Also, there's weird overlap of features, sometimes because it's so easy to call out to dot net. Like, there's Start-Job, but there's also Runspaces and System.Threading.Thread. Makes it hard to find the "right way" to do something.
- majkinetor 5y agoStart-Job is not the same as Runspaces - one uses processes, other one threads. Those who need performant option will know what to use.
- tyingq 5y agoThere's also Start-ThreadJob
- spaetzleesser 5y agoThe idea is very good but they f..ed up the language with a lot of weird quirks. Also, the naming convention with "Get-" first doesn't scale. Auto complete is basically useless when thousands of cmdlets start with "get". And Powershell is super slow when you deal with a lot of data to the point of being unusable. Two years ago I worked on a project where we used Powershell a lot. It worked OK but I think next time around I would use Python.
- cutler 5y agoWhich idea exactly was good? PowerShell, to me, is just a typical Microsoft product full of bloat and redundancy. Microsoft couldn't produce a concise language if their existence depended on it.
- spaetzleesser 5y agoHaving a scripting language deal with objects seems a good idea. Also, easy interop with the .NET framework is good. It would have been much better if they had used a variation of C= (which is a pretty good language)
- da39a3ee 5y agoMicrosoft produced Typescript and Lean. Are those full of bloat and redundancy?
- nextaccountic 5y agoAlso nushell https://github.com/nushell/nushell https://github.com/nushell/nushell - it seems to be less verbose than powershell
- jhgb 5y agoOr Scheme Shell - https://scsh.net/about/about.html https://scsh.net/about/about.html
- majkinetor 5y agoSeems abandoned.
- MathMonkeyMan 5y agostill works