News for hackers. Stuff that matters.
Re:What's New in POSIX 2024 by mdavid626 on Tuesday October 29, 2024 @05:45AM (#41981616)
Powershell?
Re:What's New in POSIX 2024 by poincaredisk on Tuesday October 29, 2024 @07:04AM (#41982553)
PowerShell designer could learn from decades of programming language progress and especially shell usage. They could improve many aspects indeed. This doesn't mean that the original design is "bonkers", only that it's not perfect.
Re:What's New in POSIX 2024 by pjmlp on Wednesday October 30, 2024 @09:45AM (#41994661)
The way Powershell works is largely based on what the computing world was doing with shells outside Bell Labs, at IBM, Xerox, and others places, exactly at similar timeframe as UNIX was happening.
Re:What's New in POSIX 2024 by mdavid626 on Thursday October 31, 2024 @03:17AM (#42004215)
Can you give examples of what should be improved in PowerShell?
Re:What's New in POSIX 2024 by oguz-ismail on Tuesday October 29, 2024 @05:51AM (#41981725)
Verbosity is a huge problem there
Re:What's New in POSIX 2024 by consteval on Tuesday October 29, 2024 @09:44AM (#41983772)
Modern programming language designers have a bad relationship with verbosity. I don't know why they do this.

It's a lang for an interactive shell, typing literally translates to developer speed. I understand the want for clarity and maybe that's nice in large scripts, but the main goal is to be a shell. So, optimize for that. Also, you probably shouldn't be using powershell for large scripts anyway.

The only recent lang I've seen that has a handle on this is Rust. You can tell they put a lot of thought into having keywords be as short as possible while still being descriptive.

Re:What's New in POSIX 2024 by ggm on Tuesday October 29, 2024 @06:42AM (#41982308)
FoundTheCamelCaseConvert.

My God next you will say getopt() --longform is the bestest

Re:What's New in POSIX 2024 by throw16180339 on Tuesday October 29, 2024 @09:54AM (#41983857)
It's been years since I used Powershell, but IIRC there are shortcuts for the common commands, e.g. cat, ls, mv, rm, and such DTRT.
Re:What's New in POSIX 2024 by Diti on Tuesday October 29, 2024 @03:56PM (#41988628)
Those aliases are, I believe, only defined on Windows PowerShell (the closed-source version 5; not PowerShell 7). I wish those default aliases you mentioned weren’t a thing. Especially `curl` (people should use `iwr` instead), which is an alias of `Invoke-WebRequest`, because it makes the `curl.exe` shipped with Windows nearly undiscoverable.