▲ 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
[–] candyman337@sh.itjust.works 186 points 2 years ago (7 children) I like that you actually can ls in power shell now permalink fedilink source hideshow 14 child comments replies: [–] TheChefSLC@lemmy.sdf.org 61 points 2 years ago (2 children) Yes, yes you can. Also, WSL and windows terminal go a very long way in making windows actually usable... permalink fedilink source parent hideshow 4 child comments replies: [–] Zeth0s@lemmy.world 53 points 2 years ago (1 child) "Usable" is a strong statement... It went from a "misery inducing insufferable machine" to a "extremely big annoyance". I do concede it is anyway a progress permalink fedilink source parent hideshow 2 child comments replies: [–] sj_zero@lotide.fbxl.net 2 points 2 years ago You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete! permalink fedilink source parent [–] csolisr@communities.azkware.net 23 points 2 years ago (3 children) Just add Winget with an UI to have a proper package manager and we're in permalink fedilink source parent hideshow 6 child comments replies: [–] DJArbz@lemmy.notmy.cloud 16 points 2 years ago (2 children) Package manager with a UI? I like my apt and dnf thank you very much. permalink fedilink source parent hideshow 4 child comments replies: [–] csolisr@communities.azkware.net 7 points 2 years ago (1 child) You can still use winget by itself from the command line! The UI is just there for convenience and automation permalink fedilink source parent hideshow 2 child comments replies: [–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent [+] somedaysoon@lemmy.world 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [+] bob_wiley@lemmy.world 6 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [–] icesentry@lemmy.ca 4 points 2 years ago I've just been using scoop for many years and I haven't felt the need to switch permalink fedilink source parent [–] Scrof@sopuli.xyz 24 points 2 years ago (2 children) PowerShell 7 is pretty sweet ngl permalink fedilink source parent hideshow 4 child comments replies: [–] UndefinedIsNotAFunction@programming.dev 6 points 2 years ago (2 children) I really want to love the "everything is an object" of power shell but I just have zero uses for using a shell on windows. Granted, my windows usage is like 15 minutes a week most of the time, but still. I also can't be bothered to use it for work because it's exclusively Linux/linux-ish over there so it's not worth bothering. Either way, I like the idea, can't really justify figuring out the details. permalink fedilink source parent hideshow 4 child comments replies: [–] DV8@lemmy.world 4 points 2 years ago If you only have to use it 15 minutes every week it's probably not worth getting to know. I work in a Windows shop, so I love everything being an object, most of the time. At least for the things that are worked out completely. It's great for things you need to iterate or just for figuring out what you can do by piping a result to get-member. If you are interested in getting better at powershell at some point, I highly recommend Powershell in a month of lunches. (Also because I like Manning's model where they automatically offer the digital versions of books they sell, and also offering free previews of the entire book, given enough time) permalink fedilink source parent [–] ______@lemm.ee 2 points 2 years ago (2 children) "But PS is open source ! Don't you want to use it in Linux and MacOS?" - Microsoft probably permalink fedilink source parent hideshow 2 child comments load more comments (2 replies) [–] dot20@lemmy.world 2 points 2 years ago WSL or bust permalink fedilink source parent [–] Kangie@lemmy.srcfiles.zip 24 points 2 years ago As long as you don't have ls aliased to ls -la in your brain... permalink fedilink source parent [–] ox0r@jlai.lu 23 points 2 years ago (2 children) Yeah but tbh i really despise powershells syntax. But i'm happy it is pretty powerful. permalink fedilink source parent hideshow 4 child comments replies: [–] affiliate@lemmy.world 36 points 2 years ago i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use permalink fedilink source parent [–] ______@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 [–] Halafax@kbin.social 13 points 2 years ago (1 child) If you can suppress 30 years of " -al" from following his buddy. permalink fedilink source parent hideshow 2 child comments replies: [–] Ew0@lemmy.sdf.org 18 points 2 years ago* (2 children) That's actually "-la", pal. permalink fedilink source parent hideshow 4 child comments replies: [–] Redjard@lemmy.dbzer0.com 5 points 2 years ago I'm "-lahv", "alias l='ls -lahv'" permalink fedilink source parent [–] mustardman@discuss.tchncs.de 3 points 2 years ago (1 child) Updating pacman is always pacman -yuS permalink fedilink source parent hideshow 2 child comments replies: [–] TechieDamien@lemmy.ml 1 point 2 years ago yuS, it is! permalink fedilink source parent [–] spez@sh.itjust.works 8 points 2 years ago (1 child) yeah permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 45 points 2 years ago* (2 children) I'm so sorry but this is how I pictured your response lmao permalink fedilink source parent hideshow 4 child comments replies: [–] SatyrSack@lemmy.one 34 points 2 years ago* (last edited 2 years ago) (1 child) permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 4 points 2 years ago Oh man, it comes full circle permalink fedilink source parent [–] spez@sh.itjust.works 8 points 2 years ago lol permalink fedilink source parent [–] hemko@lemmy.dbzer0.com 6 points 2 years ago (1 child) Also rm, cat, mkdir, cd, curl, what else permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 15 points 2 years ago (2 children) mkdir is literally a DOS command homie. permalink fedilink source parent hideshow 4 child comments replies: [–] const_void@lemmy.ml 11 points 2 years ago (1 child) It was a Unix command first permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 5 points 2 years ago Fair enough 👍 permalink fedilink source parent [–] elvith@feddit.de 2 points 2 years ago (3 children) Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users? permalink fedilink source parent hideshow 6 child comments replies: [–] vithigar@lemmy.ca 13 points 2 years ago* Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem. permalink fedilink source parent [–] hemko@lemmy.dbzer0.com 3 points 2 years ago Yeah posh has lot of aliases by default to make it more "friendly". mkdir is just new-item -type directory or whatever. Also curl is just alias for invoke-webrequest and works nothing like curl permalink fedilink source parent [–] over_clox@lemmy.world 2 points 2 years ago (1 child) MD and MKDIR are ancient DOS commands. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent
[–] TheChefSLC@lemmy.sdf.org 61 points 2 years ago (2 children) Yes, yes you can. Also, WSL and windows terminal go a very long way in making windows actually usable... permalink fedilink source parent hideshow 4 child comments replies: [–] Zeth0s@lemmy.world 53 points 2 years ago (1 child) "Usable" is a strong statement... It went from a "misery inducing insufferable machine" to a "extremely big annoyance". I do concede it is anyway a progress permalink fedilink source parent hideshow 2 child comments replies: [–] sj_zero@lotide.fbxl.net 2 points 2 years ago You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete! permalink fedilink source parent [–] csolisr@communities.azkware.net 23 points 2 years ago (3 children) Just add Winget with an UI to have a proper package manager and we're in permalink fedilink source parent hideshow 6 child comments replies: [–] DJArbz@lemmy.notmy.cloud 16 points 2 years ago (2 children) Package manager with a UI? I like my apt and dnf thank you very much. permalink fedilink source parent hideshow 4 child comments replies: [–] csolisr@communities.azkware.net 7 points 2 years ago (1 child) You can still use winget by itself from the command line! The UI is just there for convenience and automation permalink fedilink source parent hideshow 2 child comments replies: [–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent [+] somedaysoon@lemmy.world 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [+] bob_wiley@lemmy.world 6 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [–] icesentry@lemmy.ca 4 points 2 years ago I've just been using scoop for many years and I haven't felt the need to switch permalink fedilink source parent
[–] Zeth0s@lemmy.world 53 points 2 years ago (1 child) "Usable" is a strong statement... It went from a "misery inducing insufferable machine" to a "extremely big annoyance". I do concede it is anyway a progress permalink fedilink source parent hideshow 2 child comments replies: [–] sj_zero@lotide.fbxl.net 2 points 2 years ago You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete! permalink fedilink source parent
[–] sj_zero@lotide.fbxl.net 2 points 2 years ago You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete! permalink fedilink source parent
[–] csolisr@communities.azkware.net 23 points 2 years ago (3 children) Just add Winget with an UI to have a proper package manager and we're in permalink fedilink source parent hideshow 6 child comments replies: [–] DJArbz@lemmy.notmy.cloud 16 points 2 years ago (2 children) Package manager with a UI? I like my apt and dnf thank you very much. permalink fedilink source parent hideshow 4 child comments replies: [–] csolisr@communities.azkware.net 7 points 2 years ago (1 child) You can still use winget by itself from the command line! The UI is just there for convenience and automation permalink fedilink source parent hideshow 2 child comments replies: [–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent [+] somedaysoon@lemmy.world 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [+] bob_wiley@lemmy.world 6 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent [–] icesentry@lemmy.ca 4 points 2 years ago I've just been using scoop for many years and I haven't felt the need to switch permalink fedilink source parent
[–] DJArbz@lemmy.notmy.cloud 16 points 2 years ago (2 children) Package manager with a UI? I like my apt and dnf thank you very much. permalink fedilink source parent hideshow 4 child comments replies: [–] csolisr@communities.azkware.net 7 points 2 years ago (1 child) You can still use winget by itself from the command line! The UI is just there for convenience and automation permalink fedilink source parent hideshow 2 child comments replies: [–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent [+] somedaysoon@lemmy.world 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] csolisr@communities.azkware.net 7 points 2 years ago (1 child) You can still use winget by itself from the command line! The UI is just there for convenience and automation permalink fedilink source parent hideshow 2 child comments replies: [–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent
[–] Kangie@lemmy.srcfiles.zip 12 points 2 years ago (1 child) The UI is just there for ... automation Wut? I've never gone to a UI when I want to automate something, a sane CLI is much more predictable and consistent. permalink fedilink source parent hideshow 2 child comments replies: [–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent
[–] csolisr@communities.azkware.net 4 points 2 years ago Winget-UI specifically can run the upgrade tool automatically for you, that's what I meant for "automation". You could also add a scheduler to run Winget by itself every day if you need to. permalink fedilink source parent
[+] somedaysoon@lemmy.world 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[+] bob_wiley@lemmy.world 6 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] icesentry@lemmy.ca 4 points 2 years ago I've just been using scoop for many years and I haven't felt the need to switch permalink fedilink source parent
[–] Scrof@sopuli.xyz 24 points 2 years ago (2 children) PowerShell 7 is pretty sweet ngl permalink fedilink source parent hideshow 4 child comments replies: [–] UndefinedIsNotAFunction@programming.dev 6 points 2 years ago (2 children) I really want to love the "everything is an object" of power shell but I just have zero uses for using a shell on windows. Granted, my windows usage is like 15 minutes a week most of the time, but still. I also can't be bothered to use it for work because it's exclusively Linux/linux-ish over there so it's not worth bothering. Either way, I like the idea, can't really justify figuring out the details. permalink fedilink source parent hideshow 4 child comments replies: [–] DV8@lemmy.world 4 points 2 years ago If you only have to use it 15 minutes every week it's probably not worth getting to know. I work in a Windows shop, so I love everything being an object, most of the time. At least for the things that are worked out completely. It's great for things you need to iterate or just for figuring out what you can do by piping a result to get-member. If you are interested in getting better at powershell at some point, I highly recommend Powershell in a month of lunches. (Also because I like Manning's model where they automatically offer the digital versions of books they sell, and also offering free previews of the entire book, given enough time) permalink fedilink source parent [–] ______@lemm.ee 2 points 2 years ago (2 children) "But PS is open source ! Don't you want to use it in Linux and MacOS?" - Microsoft probably permalink fedilink source parent hideshow 2 child comments load more comments (2 replies) [–] dot20@lemmy.world 2 points 2 years ago WSL or bust permalink fedilink source parent
[–] UndefinedIsNotAFunction@programming.dev 6 points 2 years ago (2 children) I really want to love the "everything is an object" of power shell but I just have zero uses for using a shell on windows. Granted, my windows usage is like 15 minutes a week most of the time, but still. I also can't be bothered to use it for work because it's exclusively Linux/linux-ish over there so it's not worth bothering. Either way, I like the idea, can't really justify figuring out the details. permalink fedilink source parent hideshow 4 child comments replies: [–] DV8@lemmy.world 4 points 2 years ago If you only have to use it 15 minutes every week it's probably not worth getting to know. I work in a Windows shop, so I love everything being an object, most of the time. At least for the things that are worked out completely. It's great for things you need to iterate or just for figuring out what you can do by piping a result to get-member. If you are interested in getting better at powershell at some point, I highly recommend Powershell in a month of lunches. (Also because I like Manning's model where they automatically offer the digital versions of books they sell, and also offering free previews of the entire book, given enough time) permalink fedilink source parent [–] ______@lemm.ee 2 points 2 years ago (2 children) "But PS is open source ! Don't you want to use it in Linux and MacOS?" - Microsoft probably permalink fedilink source parent hideshow 2 child comments load more comments (2 replies)
[–] DV8@lemmy.world 4 points 2 years ago If you only have to use it 15 minutes every week it's probably not worth getting to know. I work in a Windows shop, so I love everything being an object, most of the time. At least for the things that are worked out completely. It's great for things you need to iterate or just for figuring out what you can do by piping a result to get-member. If you are interested in getting better at powershell at some point, I highly recommend Powershell in a month of lunches. (Also because I like Manning's model where they automatically offer the digital versions of books they sell, and also offering free previews of the entire book, given enough time) permalink fedilink source parent
[–] ______@lemm.ee 2 points 2 years ago (2 children) "But PS is open source ! Don't you want to use it in Linux and MacOS?" - Microsoft probably permalink fedilink source parent hideshow 2 child comments load more comments (2 replies)
[–] Kangie@lemmy.srcfiles.zip 24 points 2 years ago As long as you don't have ls aliased to ls -la in your brain... permalink fedilink source parent
[–] ox0r@jlai.lu 23 points 2 years ago (2 children) Yeah but tbh i really despise powershells syntax. But i'm happy it is pretty powerful. permalink fedilink source parent hideshow 4 child comments replies: [–] affiliate@lemmy.world 36 points 2 years ago i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use permalink fedilink source parent [–] ______@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
[–] affiliate@lemmy.world 36 points 2 years ago i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use permalink fedilink source parent
[–] ______@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
[–] Halafax@kbin.social 13 points 2 years ago (1 child) If you can suppress 30 years of " -al" from following his buddy. permalink fedilink source parent hideshow 2 child comments replies: [–] Ew0@lemmy.sdf.org 18 points 2 years ago* (2 children) That's actually "-la", pal. permalink fedilink source parent hideshow 4 child comments replies: [–] Redjard@lemmy.dbzer0.com 5 points 2 years ago I'm "-lahv", "alias l='ls -lahv'" permalink fedilink source parent [–] mustardman@discuss.tchncs.de 3 points 2 years ago (1 child) Updating pacman is always pacman -yuS permalink fedilink source parent hideshow 2 child comments replies: [–] TechieDamien@lemmy.ml 1 point 2 years ago yuS, it is! permalink fedilink source parent
[–] Ew0@lemmy.sdf.org 18 points 2 years ago* (2 children) That's actually "-la", pal. permalink fedilink source parent hideshow 4 child comments replies: [–] Redjard@lemmy.dbzer0.com 5 points 2 years ago I'm "-lahv", "alias l='ls -lahv'" permalink fedilink source parent [–] mustardman@discuss.tchncs.de 3 points 2 years ago (1 child) Updating pacman is always pacman -yuS permalink fedilink source parent hideshow 2 child comments replies: [–] TechieDamien@lemmy.ml 1 point 2 years ago yuS, it is! permalink fedilink source parent
[–] Redjard@lemmy.dbzer0.com 5 points 2 years ago I'm "-lahv", "alias l='ls -lahv'" permalink fedilink source parent
[–] mustardman@discuss.tchncs.de 3 points 2 years ago (1 child) Updating pacman is always pacman -yuS permalink fedilink source parent hideshow 2 child comments replies: [–] TechieDamien@lemmy.ml 1 point 2 years ago yuS, it is! permalink fedilink source parent
[–] spez@sh.itjust.works 8 points 2 years ago (1 child) yeah permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 45 points 2 years ago* (2 children) I'm so sorry but this is how I pictured your response lmao permalink fedilink source parent hideshow 4 child comments replies: [–] SatyrSack@lemmy.one 34 points 2 years ago* (last edited 2 years ago) (1 child) permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 4 points 2 years ago Oh man, it comes full circle permalink fedilink source parent [–] spez@sh.itjust.works 8 points 2 years ago lol permalink fedilink source parent
[–] candyman337@sh.itjust.works 45 points 2 years ago* (2 children) I'm so sorry but this is how I pictured your response lmao permalink fedilink source parent hideshow 4 child comments replies: [–] SatyrSack@lemmy.one 34 points 2 years ago* (last edited 2 years ago) (1 child) permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 4 points 2 years ago Oh man, it comes full circle permalink fedilink source parent [–] spez@sh.itjust.works 8 points 2 years ago lol permalink fedilink source parent
[–] SatyrSack@lemmy.one 34 points 2 years ago* (last edited 2 years ago) (1 child) permalink fedilink source parent hideshow 2 child comments replies: [–] candyman337@sh.itjust.works 4 points 2 years ago Oh man, it comes full circle permalink fedilink source parent
[–] candyman337@sh.itjust.works 4 points 2 years ago Oh man, it comes full circle permalink fedilink source parent
[–] hemko@lemmy.dbzer0.com 6 points 2 years ago (1 child) Also rm, cat, mkdir, cd, curl, what else permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 15 points 2 years ago (2 children) mkdir is literally a DOS command homie. permalink fedilink source parent hideshow 4 child comments replies: [–] const_void@lemmy.ml 11 points 2 years ago (1 child) It was a Unix command first permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 5 points 2 years ago Fair enough 👍 permalink fedilink source parent [–] elvith@feddit.de 2 points 2 years ago (3 children) Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users? permalink fedilink source parent hideshow 6 child comments replies: [–] vithigar@lemmy.ca 13 points 2 years ago* Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem. permalink fedilink source parent [–] hemko@lemmy.dbzer0.com 3 points 2 years ago Yeah posh has lot of aliases by default to make it more "friendly". mkdir is just new-item -type directory or whatever. Also curl is just alias for invoke-webrequest and works nothing like curl permalink fedilink source parent [–] over_clox@lemmy.world 2 points 2 years ago (1 child) MD and MKDIR are ancient DOS commands. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent
[–] over_clox@lemmy.world 15 points 2 years ago (2 children) mkdir is literally a DOS command homie. permalink fedilink source parent hideshow 4 child comments replies: [–] const_void@lemmy.ml 11 points 2 years ago (1 child) It was a Unix command first permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 5 points 2 years ago Fair enough 👍 permalink fedilink source parent [–] elvith@feddit.de 2 points 2 years ago (3 children) Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users? permalink fedilink source parent hideshow 6 child comments replies: [–] vithigar@lemmy.ca 13 points 2 years ago* Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem. permalink fedilink source parent [–] hemko@lemmy.dbzer0.com 3 points 2 years ago Yeah posh has lot of aliases by default to make it more "friendly". mkdir is just new-item -type directory or whatever. Also curl is just alias for invoke-webrequest and works nothing like curl permalink fedilink source parent [–] over_clox@lemmy.world 2 points 2 years ago (1 child) MD and MKDIR are ancient DOS commands. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent
[–] const_void@lemmy.ml 11 points 2 years ago (1 child) It was a Unix command first permalink fedilink source parent hideshow 2 child comments replies: [–] over_clox@lemmy.world 5 points 2 years ago Fair enough 👍 permalink fedilink source parent
[–] elvith@feddit.de 2 points 2 years ago (3 children) Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users? permalink fedilink source parent hideshow 6 child comments replies: [–] vithigar@lemmy.ca 13 points 2 years ago* Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem. permalink fedilink source parent [–] hemko@lemmy.dbzer0.com 3 points 2 years ago Yeah posh has lot of aliases by default to make it more "friendly". mkdir is just new-item -type directory or whatever. Also curl is just alias for invoke-webrequest and works nothing like curl permalink fedilink source parent [–] over_clox@lemmy.world 2 points 2 years ago (1 child) MD and MKDIR are ancient DOS commands. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent
[–] vithigar@lemmy.ca 13 points 2 years ago* Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem. permalink fedilink source parent
[–] hemko@lemmy.dbzer0.com 3 points 2 years ago Yeah posh has lot of aliases by default to make it more "friendly". mkdir is just new-item -type directory or whatever. Also curl is just alias for invoke-webrequest and works nothing like curl permalink fedilink source parent
[–] over_clox@lemmy.world 2 points 2 years ago (1 child) MD and MKDIR are ancient DOS commands. permalink fedilink source parent hideshow 2 child comments replies: [–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent
[–] hemko@lemmy.dbzer0.com 2 points 2 years ago I didn't actually know this, thanks for pointing out permalink fedilink source parent