View Quote
-
#9374 Up↑ /2 Down↓ [Report] 2022-08-18 13:02 WST
[11:35 AM] tpg: @dylanh333 [333] I'm starting to see why you like PS
[11:36 AM] dylanh333 [333]: Why's that?
[11:36 AM] tpg: (Writing up a script in powershell so I don't have to mess around with installing python on a server)
[11:36 AM] tpg: It feels like a mashup of bash and python
[11:36 AM] dylanh333 [333]: Yeah, it's good for "living off the land". It's not the most elegant language, but there's certainly a lot you can do with it
[11:37 AM] dylanh333 [333]: I'd say it's more of a mashup between bash, perl, and C# tbh
[11:37 AM] dylanh333 [333]: I don't see anything "pythonic" in it's design
[11:39 AM] tpg: Hmm... yeah, just used "python" to refer to more fully-fledged modern scripting languages
[11:39 AM] dylanh333 [333]: Did I mention you have unfettered access to the .NET runtime as well? Not to mention you can embed C# with Add-Type, which means you can then P/Invoke unmanaged Win32 functions as well
[11:39 AM] dylanh333 [333]: Ugly: yes, but also powerful
[11:41 AM] dylanh333 [333]: But yeah, in a lot of use cases, its purpose in Windows is analogous to Python in Linux
[11:47 AM] coxy: isn't it pythonic? don't you think?
[11:47 AM] dylanh333 [333]: I smell sarcasm
[11:57 AM] Nick: It's like RAID on your out-of-warranty day
[12:01 PM] Nick: It's like outsourcing, when you've just renewed your hardware support contract
[12:29 PM] Nick: It's like ten thousand structured object processing steps when all you need is a regex
[12:38 PM] dylanh333 [333]: I'm failing to see the common theme in these analogies
[12:39 PM] dylanh333 [333]: Other than "bad" or "foolish"
[12:41 PM] bob: @dylanh333 [333] maybe even...ironic?
[12:44 PM] dylanh333 [333]: I don't think there was anything ironic about me saying PowerShell'e syntax wasn't "pythonic" directly in response to it being compared to Python.
By "pythonic", I meant things like not having curly braces and using colons to introduce blocks, having weird for loop syntax, enforcing indentation, etc., rather than being Python.
[12:45 PM] dylanh333 [333]: Who would have thought that PowerShell != Python? /irony
[12:46 PM] bob: woosh
[12:46 PM] Nick: ...it figures.