Hacker News new | ask | show | jobs
by majkinetor 1516 days ago
If you avoid PowerShell, go back to where you came from :)

Avoid bad advices.

1 comments

I realise powershell has fans, but hear me out.

Windows itself has reached a dead end. It is such a mishmash of incompatible tech that Microsoft themselves have stopped trying to fix their admin GUI interface. Between registry, Com and Dcom and even a few leftover text files, there is no way to configure a windows system consistently.

Powershell is an over complicated band-aid to cover it up, ignoring that the wound underneath has become septic.

I get that they had to do something to drag it together, but even good powershell scripts end up as 4 different coding styles crammed together, depending on what component CLI output or interface you are trying to use.

WSL2 is a great thing if you need to do anything with python, node and even .NET. All the online tutorials work and since everything is a CLI these days, why not use a decent shell that doesn't have windows legacy character escape bogosity, broken file names and has sane argument handling?

> Powershell is an over complicated band-aid to cover it up

Sounds like personal preference or non RTFM. Bash is IMO way more complicated, I wouldn't touch it even if my life depended on it. Even authors hate it.

> Windows itself has reached a dead end. It is such a mishmash of incompatible tech that Microsoft themselves have stopped trying to fix their admin GUI interface. Between registry, Com and Dcom and even a few leftover text files, there is no way to configure a windows system consistently.

Yet Linux is not a single system but array of distributions and when you take all into account, you have worst situation then with Windows. Not really comparable IMO.

> WSL2 is a great thing if you need to do anything with python, node and even .NET.

Nah, those work perfectly fine without WSL2. There are things that require it, and that is reason its great (for example Home Assistant).

> why not use a decent shell that doesn't have windows legacy character escape bogosity, broken file names and has sane argument handling?

I use decent terminal - ConEmu. Its like tmux, and better since it allows embedding GUIs in splits rather then just shell. Hard to find better thing on Linux.

I use most powerful shell in existence. I use it cross platform.

> and has sane argument handling?

Are you serious? Bash argument handling must be the worst out there. I might be able to understand other complaints but this one is really lame.

> broken file names

What?

Powershell always feels like writing enterprise editions (like https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpris...) of simple tasks.