Hacker News new | ask | show | jobs
by grrdotcloud 1048 days ago
Agreed but at what cost?

Get-Process | Out-Host -Paging | Format-List

Case sensitive hyphenated compound word commands?

3 comments

At the cost of having to press tab to auto-complete a statement you've written 10 billion times before. God forbid a software engineer has to type something

> Case sensitive

they're not

Also your command is equivalent to:

ps | oh -paging | fl

They're not case-sensitive.
Well I'm sensitive!
I don’t think it’s actually case sensitive. And there is autocomplete anyways.
Powershell is rather famously case insensitive.

It is idiomatic to capitalize liberally though.

Idiomatic in scripts (and documentation and training). REPL idioms are much more loosey-goosey.

That's actually something I have come to appreciate about Powershell is that idiomatic distinction concept that scripts are more likely to be read by other people (including Future You with no memory of having written the script in the first place) and to write "full sentences" for an audience, but feel free to be fast and loose in the REPL all you want.

Totally agree! I am a bash fanboi with a fish fetish, but recently started in a windows shop. I've actually grown quite fond of the flexibility powershell offers, and how usable it is without requiring esoteric knowledge.