|
Pretty much everything is better than Bash. My two favourite Powershell-isms are automatic unpacking of single-element arrays, which can lead to some really fun bugs if you are expecting to operate on an array but get a completely different type from a function, and having to use .net types with methods that all have to be cast to [void], because many .net class methods return something you don't care about and Powershell's return is actually largely ornamental. And since you need to invoke .net stuff if you want to get anything nontrivial done… Also, an object oriented language that added classes in version 5 or so. Lmao.
|
# ? Sep 30, 2021 07:07 |
|
|
# ? May 16, 2024 03:27 |
|
PowerShell is only good in the sense that you no longer have to write vbscript or DOS batch to automate something on windows most of the time, anyway
|
# ? Sep 30, 2021 07:31 |
|
r u ready to WALK posted:PowerShell is only good in the sense that you no longer have to write vbscript or DOS batch to automate something on windows I ran into a KiXtart script the other day. I had forgotten about that garbage lol
|
# ? Sep 30, 2021 07:34 |
|
Antigravitas posted:Pretty much everything is better than Bash. for what it's worth the behaviour of return works properly if you use it in class methods. ofc i agree that only adding classes in 5.0 is lame as heck. in fact powershell pre-5.0 is kinda dogshit. it's good that 5.1 is the standard version now since like, win 8.1/server 2016. i like powershell. the fact that it's .net all the way down clicks with me. having access to the whole .net standard library or w/e is very nifty. also having real error handling with trap and try/catch/finally is good to making things robust. people complain that it's overly verbose which imo is good for writing poo poo that's readable but if you're hacking on the CLI there are still built-in and customisable aliases, type accelerators and all the core cmdlets support positional parameters. in comparison i find shell scripting to be tedious and frustrating as it's all magic characters and switches and regex (note i do not know regex and refuse to learn it). i have used it to write some fairly complicated stuff but ive always found it to be a nightmare and given the option i usually just switch to python (lol ikr).
|
# ? Sep 30, 2021 11:57 |
|
no one but an absolute fool would defend writing any significant software using any of the usual linux shells, whereas powershell is perfectly suitable for reasonably complex and robust automation, and works great for making domain-specific commandline tooling. powershell just also happens to be really awkward in interactive use a lot of the time, which is 99% of what people use shells for.
|
# ? Sep 30, 2021 12:06 |
|
Antigravitas posted:Pretty much everything is better than Bash. What about batch?
|
# ? Sep 30, 2021 12:33 |
|
Cybernetic Vermin posted:no one but an absolute fool would defend writing any significant software using any shells ftfy
|
# ? Sep 30, 2021 13:07 |
|
Zlodo posted:
ftfy
|
# ? Sep 30, 2021 13:17 |
|
AnimeIsTrash posted:What about batch? or BASIC no I don't mean visual basic
|
# ? Sep 30, 2021 13:24 |
|
Antigravitas posted:Pretty much everything is better than Bash. Cybernetic Vermin posted:no one but an absolute fool would defend writing any significant software using any of the usual linux shells, whereas powershell is perfectly suitable for reasonably complex and robust automation, and works great for making domain-specific commandline tooling.
|
# ? Sep 30, 2021 13:27 |
|
AnimeIsTrash posted:What about batch? It's a gun that had its barrel filled with molten lead. You can't shoot yourself or anyone else with it, but trying to use it fills the area with shrapnel. However, you can use it as a hammer. Bash is a gun that looks normal, but its slide won't stop after firing and it'll go off if used as a hammer. I've been trying to come up with even more tortured metaphors but I think I'll leave that to the yanks.
|
# ? Sep 30, 2021 13:58 |
|
Nah, I'm good SharePoint.
|
# ? Sep 30, 2021 16:05 |
Drastic Actions posted:
i have worked like a dog on sharepoint too, you can see my piss all over it
|
|
# ? Sep 30, 2021 16:11 |
|
Oh, perfect, I was hoping this was written in bash
|
# ? Sep 30, 2021 16:24 |
|
Drastic Actions posted:
Lol different things come up when I try to search for myhub... There's something from another company and https://apps.apple.com/us/app/microsoft-myhub/id1476326475 this is a Microsoft app for Microsoft employees? mystes fucked around with this message at 16:40 on Sep 30, 2021 |
# ? Sep 30, 2021 16:36 |
|
Yeah, this is from my work email. No matter how hard I try unsubscribing from all of these stupid lists I keep getting added back so I filter them all into the "stupid crap that doesn't matter" folder. No way in hell I'm intuning my phone so I can participate in #MicrosoftLife.
|
# ? Sep 30, 2021 17:08 |
|
|
# ? Sep 30, 2021 17:10 |
|
If power shell is so good why is it written by Microsoft. Checkmate
|
# ? Sep 30, 2021 17:18 |
|
its written by Microsoft for linux so its wraps around to being good
|
# ? Sep 30, 2021 17:21 |
|
Piping objects around is seriously a pretty big improvement over traditional unix shells, it's just too bad that powershell is annoying in other ways. My dream would be something like powershell but with less horrible syntax and statically typed with row polymorphism.
|
# ? Sep 30, 2021 17:28 |
|
a python based shell would be the dream
|
# ? Sep 30, 2021 17:53 |
|
Perplx posted:a python based shell would be the dream https://xon.sh/
|
# ? Sep 30, 2021 18:01 |
Perplx posted:a python based shell would be the dream an R based shell would also be a dream, but in a slightly different connotation
|
|
# ? Sep 30, 2021 18:04 |
|
mystes posted:Piping objects around is seriously a pretty big improvement over traditional unix shells, it's just too bad that powershell is annoying in other ways. My dream would be something like powershell but with less horrible syntax and statically typed with row polymorphism. i've never understood why people hate the syntax of powershell. i'll admit that yes, the comparison operators are cooked (-eq, -ne, etc). that aside though it's pretty normal? imo it's way better than the shell scripting insanity of if/fi, case/esac that's like someone was taking the piss
|
# ? Oct 1, 2021 04:33 |
|
then you'd better not look at any of the Algol-derived languages
|
# ? Oct 1, 2021 06:27 |
|
Pile Of Garbage posted:i've never understood why people hate the syntax of powershell. i'll admit that yes, the comparison operators are cooked (-eq, -ne, etc). that aside though it's pretty normal? imo it's way better than the shell scripting insanity of if/fi, case/esac that's like someone was taking the piss it's good for cli though Khorne fucked around with this message at 13:58 on Oct 1, 2021 |
# ? Oct 1, 2021 12:45 |
|
windows 11 first looks: please kill me notable fun: context menus are depreciated except when they're not, more clicks for commonly used items, it is no longer possible to use windows home without a microsoft id
|
# ? Oct 5, 2021 13:31 |
|
infernal machines posted:windows 11 first looks: please kill me Lmao that looks like KDE.
|
# ? Oct 5, 2021 15:25 |
|
quote:In Windows 11, Windows Explorer gets its first major redesign since Windows 8, though calling it "major" says more about the normal rate of improvement for Explorer and less about the amount of stuff here that's actually new.
|
# ? Oct 5, 2021 15:36 |
|
AnimeIsTrash posted:Lmao that looks like KDE. Now that’s just rude. Don’t insult all the hard work the KDE developers have done!
|
# ? Oct 5, 2021 16:48 |
|
It does look like they are trying to rip off KDE Plasma. However, KDE Plasma achieves a much more unified look than the Windows Hodgepodge.
|
# ? Oct 5, 2021 18:34 |
|
AnimeIsTrash posted:Lmao that looks like KDE. Khorne fucked around with this message at 19:39 on Oct 5, 2021 |
# ? Oct 5, 2021 19:35 |
|
Khorne posted:eventually windows will just be a competitor to kde & gnome and it will run linux underneath with some terrible .net compatibility layer lol
|
# ? Oct 5, 2021 19:41 |
|
macos is the monkey paw version of this
Khorne fucked around with this message at 20:00 on Oct 5, 2021 |
# ? Oct 5, 2021 19:47 |
|
Khorne posted:eventually windows will just be a competitor to kde & gnome and it will run linux underneath with some terrible .net compatibility layer
|
# ? Oct 5, 2021 21:27 |
|
yeah wine is a better implementation of the windows api anyway
|
# ? Oct 6, 2021 00:37 |
|
It's making some good strides lately thanks to valve and co but let's not get too hasty
|
# ? Oct 6, 2021 05:51 |
|
mono is pretty functional so the .net layer is already taken care of
|
# ? Oct 6, 2021 06:25 |
|
TIL that if you hit the F1 key in mspaint on win10 (21H1) it will launch chedge and search for "help with paint in windows 10" on bing (not direct, uses a fwlink: https://go.microsoft.com/fwlink/?LinkID=2004229). i know they're trying to get rid of mspaint and all but lmao this is beyond lazy and dumb.
|
# ? Oct 7, 2021 10:30 |
|
|
# ? May 16, 2024 03:27 |
|
Pile Of Garbage posted:TIL that if you hit the F1 key in mspaint on win10 (21H1) it will launch chedge and search for "help with paint in windows 10" on bing (not direct, uses a fwlink: https://go.microsoft.com/fwlink/?LinkID=2004229). i know they're trying to get rid of mspaint and all but lmao this is beyond lazy and dumb. https://twitter.com/panos_panay/status/1428102755151847431
|
# ? Oct 7, 2021 10:42 |