Hacker News new | ask | show | jobs
by cbaleanu 3595 days ago
I Can Only See One Problem With PowerShell :)
3 comments

So, that's kind of the beauty to me. For long lived scripts I can always type out `ForEach-Object { ... }`. When I'm ad-hocing there's always `%{ ... }`.

Bash is a strange beauty, but part of that beauty is how arcane it can be. Generally, people use the smallest parameter possible in scripts instead of the full name. While this can definitely continue with PS, the community has decided on "alias for ADHOC and Full-Name for scripts". This helps the readability tons if someone hasn't memorized all the command parameters.

Powershell is case-insensitive, so feel free to avoid that shift key if you're so inclined :)
Been using PS for a long time and I had no idea about this. Thanks !
It's happy to gobble up whatever improperly-capitalized cmdlets you throw at it, heck you can even forget some letters ;). And with a little tap on that tab key it will helpfully fix your laziness so there's no trace of it in your shell history.