6 ms·
At our office we jokingly refer to powershell as "two googles per line" - a term coined by its strongest proponent at the company. It thought it would come nat
by Pxtl 11y ago
At our office we jokingly refer to powershell as "two googles per line" - a term coined by its strongest proponent at the company.
It thought it would come naturally over time, but it never does. It seems needlessly cryptic and verbose in so many ways. I've started using LinqPad for stuff I would normally do in cmd now.
- ilek 11y agoAgree on that one, it's really verbose and ugly. I liked the idea of a cmd that integrates so nicely with .NET but I don't think it worked out this time. We use powershell a lot at work for developer setup stuff and other common tasks we do on a daily basis and at this point I've considered just writing my own language to do it or find something else.
- mattmanser 11y agoWhy don't you just use Python, Ruby or even C#? Why write your own language? I wanted to learn Ruby a while back but didn't have a web project to work on so I started writing a load of scripts in Ruby instead. It worked out fine.
- ilek 11y agoC# has the same issue really, although we do it use for some other tooling and whatnot as we're a .NET shop. Don't know much Ruby or Python to be honest so I'm not sure how could I apply them but I'll dig around sometime soon.
- UK-AL 11y agoLearning Bash is just as cryptic. At least powershell function names have logic behind them.
- Klathmon 11y agoI've only been working professionally with linux for 5-ish years, but i'd say that i'm still at the "2 googles per command" number for bash. Some of it stems from the fact that i just don't use it enough, but most of it from the fact that this shit just isn't intuitive. why is -b the flag for key length in ssh-keygen? Why is -v the flag for "don't include" in grep? I have those memorized now, but there is no way they are "intuitive".
- yread 11y agoyeah I also always have to google the -v and them I'm like ahaaa it's inVert! And next time I have to google it again
- yoodenvranx 11y ago> Some of it stems from the fact that i just don't use it enough, but most of it from the fact that this shit just isn't intuitive. I have exactly the same problem. I use Linux since about 8 years but somehow I just don't use the commandline very often so I forget stuff all the time. Because of this I have half a dozen post-its glued to my monitor for all the grep/git/whatever tricks I just can't keep in my head. And for other stuff I use about once a year I have a long linux_tricks.txt on my desktop where I write down all the tricky and obscure command line stuff.
- Klathmon 11y agoHoly shit git! I need to reset my git repo to match origin, is it git reset hard --HEAD or git reset HEAD --hard? I'm like 90% sure they switch it with every update.
- scrollaway 11y agoIt's just git reset --hard. HEAD is implied. Edit: To be more specific: git # the executable reset # the operation --hard # the type of reset being done (hard reset) HEAD # where to reset *to*. Defaults to HEAD if not specified.
- 11y ago
- lottin 11y agoI don't see anything illogical in fg bg ls cd mkdir cp rm man ... Perhaps a little cryptic, but it's just mnemonics. Not to mention that short names are very convenient in a text-based shell.
- Pxtl 11y agoPoint. I'm developer, not ops. I'm comparing PowerShell to true programming languages, not to Bash.
- anoonmoose 11y agoI don't really understand this- I always found the "get-help" commandlet to be sufficiently informative, unless they were using parts of the .NET framework that I wasn't already familiar with, in which case I needed to go read about those objects/etc. on my own. Is this that bad?
- emodendroket 11y agoI guess it won't help if you don't know what cmdlet you want to use.
- marcosdumay 11y agoWell, the man page of nearly any command is also good enough to avoid a google search (yes, git is an exception). That isn't much comforting. And frankly, MS always pushed Power Shell as a better way to do things than the ancient options for command line, thus color me disappointed that it couldn't be better than the "default choice" Bash.