▲ 1497 ▼ Hallelujah (lemmy.world) submitted 2 years ago by alphacyberranger@lemmy.world to c/programmer_humor@programming.dev 130 comments fedilink hide all child comments
[–] ______@lemm.ee 20 points 2 years ago (2 children) Unfortunately, bash syntax isnt amazing either permalink fedilink source parent hideshow 4 child comments replies: [–] newIdentity@sh.itjust.works 18 points 2 years ago (1 child) But Powershell is worse permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 6 points 2 years ago (2 children) Yeah. I've said this before and got grilled for it but I wish there was a shell scripting language that doesn't have arcane syntax. permalink fedilink source parent hideshow 4 child comments replies: [–] echindod@programming.dev 6 points 2 years ago Fish? I like fish. permalink fedilink source parent [–] ElderWendigo@sh.itjust.works 2 points 2 years ago (1 child) Can anyone name any living language, scripting or otherwise, without arcane syntax? permalink fedilink source parent hideshow 2 child comments replies: [–] fkn@lemmy.world 1 point 2 years ago Perl, no wait you said without arcane syntax.... permalink fedilink source parent [+] Yearly1845@reddthat.com 12 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 6 points 2 years ago (1 child) I hope I didn't come across as defending ps. PS sucks and whoever decided to have functions use capital case with dashes in between needs to have their brain scanned permalink fedilink source parent hideshow 2 child comments replies: [–] wizardbeard@lemmy.dbzer0.com 3 points 2 years ago* (1 child) I do a lot of work in PS and I don't find it that bad. But you forgot what's even dumber about their function naming conventions. Function names are supposed to be a single word verb, then the dash, then the rest. But not any verb, you're supposed to use one from PS's list of acceptable ones which has some really weird omissions. And they break their own single word verb convention with "acceptable verbs" ConvertTo and ConvertFrom (ConvertTo-SecureString, ConvertFrom-Json), which are the only exception to one word verbs before the dash. Function names are definitely one of my biggest peeves with it. Additionally, their basic comparison operators are dumb as hell. How is "-le" better or clearer in meaning that "<="? -ne instead of !=, but == isn't just -e, it's -eq. And you can't slap an n in front of other comparators for not, -nle isn't a thing. You gotta wrap the whole comparison in parentheses and slap an ! on the front or slap -not in front. But don't try to do !-le, because that's also not a thing. It's not terrible but I refuse to believe that -eq is more readable than == permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 2 points 2 years ago Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions. permalink fedilink source parent
[–] newIdentity@sh.itjust.works 18 points 2 years ago (1 child) But Powershell is worse permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 6 points 2 years ago (2 children) Yeah. I've said this before and got grilled for it but I wish there was a shell scripting language that doesn't have arcane syntax. permalink fedilink source parent hideshow 4 child comments replies: [–] echindod@programming.dev 6 points 2 years ago Fish? I like fish. permalink fedilink source parent [–] ElderWendigo@sh.itjust.works 2 points 2 years ago (1 child) Can anyone name any living language, scripting or otherwise, without arcane syntax? permalink fedilink source parent hideshow 2 child comments replies: [–] fkn@lemmy.world 1 point 2 years ago Perl, no wait you said without arcane syntax.... permalink fedilink source parent
[–] ______@lemm.ee 6 points 2 years ago (2 children) Yeah. I've said this before and got grilled for it but I wish there was a shell scripting language that doesn't have arcane syntax. permalink fedilink source parent hideshow 4 child comments replies: [–] echindod@programming.dev 6 points 2 years ago Fish? I like fish. permalink fedilink source parent [–] ElderWendigo@sh.itjust.works 2 points 2 years ago (1 child) Can anyone name any living language, scripting or otherwise, without arcane syntax? permalink fedilink source parent hideshow 2 child comments replies: [–] fkn@lemmy.world 1 point 2 years ago Perl, no wait you said without arcane syntax.... permalink fedilink source parent
[–] echindod@programming.dev 6 points 2 years ago Fish? I like fish. permalink fedilink source parent
[–] ElderWendigo@sh.itjust.works 2 points 2 years ago (1 child) Can anyone name any living language, scripting or otherwise, without arcane syntax? permalink fedilink source parent hideshow 2 child comments replies: [–] fkn@lemmy.world 1 point 2 years ago Perl, no wait you said without arcane syntax.... permalink fedilink source parent
[–] fkn@lemmy.world 1 point 2 years ago Perl, no wait you said without arcane syntax.... permalink fedilink source parent
[+] Yearly1845@reddthat.com 12 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 6 points 2 years ago (1 child) I hope I didn't come across as defending ps. PS sucks and whoever decided to have functions use capital case with dashes in between needs to have their brain scanned permalink fedilink source parent hideshow 2 child comments replies: [–] wizardbeard@lemmy.dbzer0.com 3 points 2 years ago* (1 child) I do a lot of work in PS and I don't find it that bad. But you forgot what's even dumber about their function naming conventions. Function names are supposed to be a single word verb, then the dash, then the rest. But not any verb, you're supposed to use one from PS's list of acceptable ones which has some really weird omissions. And they break their own single word verb convention with "acceptable verbs" ConvertTo and ConvertFrom (ConvertTo-SecureString, ConvertFrom-Json), which are the only exception to one word verbs before the dash. Function names are definitely one of my biggest peeves with it. Additionally, their basic comparison operators are dumb as hell. How is "-le" better or clearer in meaning that "<="? -ne instead of !=, but == isn't just -e, it's -eq. And you can't slap an n in front of other comparators for not, -nle isn't a thing. You gotta wrap the whole comparison in parentheses and slap an ! on the front or slap -not in front. But don't try to do !-le, because that's also not a thing. It's not terrible but I refuse to believe that -eq is more readable than == permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 2 points 2 years ago Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions. permalink fedilink source parent
[–] ______@lemm.ee 6 points 2 years ago (1 child) I hope I didn't come across as defending ps. PS sucks and whoever decided to have functions use capital case with dashes in between needs to have their brain scanned permalink fedilink source parent hideshow 2 child comments replies: [–] wizardbeard@lemmy.dbzer0.com 3 points 2 years ago* (1 child) I do a lot of work in PS and I don't find it that bad. But you forgot what's even dumber about their function naming conventions. Function names are supposed to be a single word verb, then the dash, then the rest. But not any verb, you're supposed to use one from PS's list of acceptable ones which has some really weird omissions. And they break their own single word verb convention with "acceptable verbs" ConvertTo and ConvertFrom (ConvertTo-SecureString, ConvertFrom-Json), which are the only exception to one word verbs before the dash. Function names are definitely one of my biggest peeves with it. Additionally, their basic comparison operators are dumb as hell. How is "-le" better or clearer in meaning that "<="? -ne instead of !=, but == isn't just -e, it's -eq. And you can't slap an n in front of other comparators for not, -nle isn't a thing. You gotta wrap the whole comparison in parentheses and slap an ! on the front or slap -not in front. But don't try to do !-le, because that's also not a thing. It's not terrible but I refuse to believe that -eq is more readable than == permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 2 points 2 years ago Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions. permalink fedilink source parent
[–] wizardbeard@lemmy.dbzer0.com 3 points 2 years ago* (1 child) I do a lot of work in PS and I don't find it that bad. But you forgot what's even dumber about their function naming conventions. Function names are supposed to be a single word verb, then the dash, then the rest. But not any verb, you're supposed to use one from PS's list of acceptable ones which has some really weird omissions. And they break their own single word verb convention with "acceptable verbs" ConvertTo and ConvertFrom (ConvertTo-SecureString, ConvertFrom-Json), which are the only exception to one word verbs before the dash. Function names are definitely one of my biggest peeves with it. Additionally, their basic comparison operators are dumb as hell. How is "-le" better or clearer in meaning that "<="? -ne instead of !=, but == isn't just -e, it's -eq. And you can't slap an n in front of other comparators for not, -nle isn't a thing. You gotta wrap the whole comparison in parentheses and slap an ! on the front or slap -not in front. But don't try to do !-le, because that's also not a thing. It's not terrible but I refuse to believe that -eq is more readable than == permalink fedilink source parent hideshow 2 child comments replies: [–] ______@lemm.ee 2 points 2 years ago Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions. permalink fedilink source parent
[–] ______@lemm.ee 2 points 2 years ago Functionally speaking, PS is a really good shell language. Its minor things about it that I dont enjoy. As you said, it feels like the language design has some poor decisions. permalink fedilink source parent