5 ms·
Serious question -- not a flame war :) I honestly can't tell if this is sarcastic or not. I've been typing `curl -O http: ...` into command prompts for decades
by sonofhans 6y ago
Serious question -- not a flame war :)
I honestly can't tell if this is sarcastic or not. I've been typing `curl -O http: ...` into command prompts for decades, and that Powershell incantation looks awfully unwieldy.
In what way is it the happy path?
- isoskeles 6y agoCan't speak for that person, but I'm certain it was sarcasm.
- fortran77 6y agoBecause it's the native Windows answer. There's no need to make Windows look like Unix. It's great (really!) the way it was designed.
- stnmtn 6y agoDo you feel like you are typing a lot more for simple things like this?
- vips7L 6y agoPowershell comes installed with a lot of aliases. Invoke-WebRequest is just iwr
- feteru 6y agoAny good resources for using Powershell? Is there ever a reason not to use powershell? Coming from OSX it doesn't really make sense to me that there are two terminals installed by default, and I end up just using WSL ubuntu. Also I don't really know the commands so it feels crippled to me (no ssh (still? idk), not many tools, etc)
- majkinetor 6y ago> Is there ever a reason not to use powershell? No, you should always use it. Its maybe a problem when ultimate performance is in question, but you can go long way with Powershell - I recently had a web service SOAP client implemented in it that did millions of requests in an hour using threads in less then 50 lines of code consuming less then 3% of server resources (running entire country in single day actually) > I end up just using WSL ubuntu You can have basiclly anthing working without WSL (except maybe docker correctly). > Also I don't really know the commands so it feels crippled to me (no ssh (still? idk), SSH is there. Learn commands along the way. You should def take a book like this one: https://www.manning.com/books/learn-windows-powershell-in-a-month-of-lunches-second-edition https://www.manning.com/books/learn-windows-powershell-in-a-... > not many tools, All usual tools, linux and windows, can be used. You have majority of them hosted on chocolatey.
- majkinetor 6y agoLike others have said, you would never type that long thing in Powershell, just `irm wttr.in` (even shorter then curl). People for some reason always show long stuff that is only used when you write scripts to share with others and not interactivelly - you could do the same with curl if you use --long-parameter-names but somehow people are biased when talking about posh like aliases and other things do not exist.