1507
Hallelujah (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] candyman337@sh.itjust.works 181 points 1 year ago

I like that you actually can ls in power shell now

[-] TheChefSLC@lemmy.sdf.org 66 points 1 year ago

Yes, yes you can.

Also, WSL and windows terminal go a very long way in making windows actually usable...

[-] Zeth0s@lemmy.world 60 points 1 year ago

"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

[-] sj_zero@lotide.fbxl.net 2 points 1 year ago

You damn spoiled kids with your blue jeans and your rock and roll music and your auto complete!

[-] csolisr@communities.azkware.net 24 points 1 year ago

Just add Winget with an UI to have a proper package manager and we're in

[-] DJArbz@lemmy.notmy.cloud 16 points 1 year ago

Package manager with a UI? I like my apt and dnf thank you very much.

[-] csolisr@communities.azkware.net 9 points 1 year ago

You can still use winget by itself from the command line! The UI is just there for convenience and automation

[-] Kangie@lemmy.srcfiles.zip 12 points 1 year ago

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.

[-] csolisr@communities.azkware.net 6 points 1 year 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.

[-] icesentry@lemmy.ca 4 points 1 year ago

I've just been using scoop for many years and I haven't felt the need to switch

[-] ox0r@jlai.lu 24 points 1 year ago

Yeah but tbh i really despise powershells syntax. But i'm happy it is pretty powerful.

[-] affiliate@lemmy.world 36 points 1 year ago

i’m often amazed at microsoft’s ability to take a useful product and make it agonizing to use

[-] ______@lemm.ee 23 points 1 year ago

Unfortunately, bash syntax isnt amazing either

[-] newIdentity@sh.itjust.works 22 points 1 year ago
[-] ______@lemm.ee 6 points 1 year ago

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.

[-] echindod@programming.dev 6 points 1 year ago

Fish? I like fish.

[-] ElderWendigo@sh.itjust.works 3 points 1 year ago

Can anyone name any living language, scripting or otherwise, without arcane syntax?

[-] fkn@lemmy.world 1 points 1 year ago

Perl, no wait you said without arcane syntax....

[-] Yearly1845@reddthat.com 12 points 1 year ago

Bash came out decades ago and powershell is brand new. It doesn't really have an excuse to suck.

[-] ______@lemm.ee 8 points 1 year ago

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

[-] wizardbeard@lemmy.dbzer0.com 3 points 1 year ago* (last edited 1 year ago)

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 ==

[-] ______@lemm.ee 2 points 1 year 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.

[-] Kangie@lemmy.srcfiles.zip 24 points 1 year ago

As long as you don't have ls aliased to ls -la in your brain...

[-] Halafax@kbin.social 13 points 1 year ago

If you can suppress 30 years of " -al" from following his buddy.

[-] Ew0@lemmy.sdf.org 18 points 1 year ago* (last edited 1 year ago)
[-] Redjard@lemmy.dbzer0.com 5 points 1 year ago

I'm "-lahv", "alias l='ls -lahv'"

[-] mustardman@discuss.tchncs.de 3 points 1 year ago

Updating pacman is always pacman -yuS

[-] TechieDamien@lemmy.ml 2 points 1 year ago
[-] spez@sh.itjust.works 10 points 1 year ago
[-] candyman337@sh.itjust.works 45 points 1 year ago* (last edited 1 year ago)

I'm so sorry but this is how I pictured your response lmao

Image

[-] SatyrSack@lemmy.one 34 points 1 year ago* (last edited 1 year ago)
[-] candyman337@sh.itjust.works 4 points 1 year ago

Oh man, it comes full circle

this post was submitted on 26 Aug 2023
1507 points (100.0% liked)

Programmer Humor

19331 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS