Hacker News new | past | comments | ask | show | jobs | submit login

The verbosity is one of PowerShell's best features. There is so much less guess work about what a command or argument does, or whether it is '-a' or '-A', or any of that garbage. You can usually guess how to do things because there's a reasonable consistency to the Verb-Noun structure. The extra typing is mitigated by everything being tab-complete including commands, arguments, and even variables. Not to mention you can just alias commonly used commands into shorter versions anyway!

Did I mention it also makes readings scripts at least 100 times easier?




Around the time powershell came out I got into the (bad) habit of writing super-concise bash scripts that write bash scripts, for instance:

   ls *.txt | awk '{print "mv" $1 "/somewhere/"}' | bash
You're really not supposed to do this because if your character escaping is less than perfect somebody can corrupt the bash script that your script writes (like SQL injection) but it is so much fun...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: