this post was submitted on 26 Aug 2023
1506 points (97.5% liked)

Programmer Humor

20703 readers
1368 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 184 points 2 years ago (7 children)

I like that you actually can ls in power shell now

[–] [email protected] 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...

[–] [email protected] 53 points 2 years ago (1 children)

"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

[–] [email protected] 2 points 2 years ago

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

[–] [email protected] 23 points 2 years ago (3 children)

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

[–] [email protected] 16 points 2 years ago (2 children)

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

[–] [email protected] 7 points 2 years ago (1 children)

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

[–] [email protected] 12 points 2 years ago (1 children)

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.

[–] [email protected] 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.

[–] [email protected] 4 points 2 years ago

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

[–] [email protected] 25 points 2 years ago

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

[–] [email protected] 24 points 2 years ago (2 children)

PowerShell 7 is pretty sweet ngl

[–] UndefinedIsNotAFunction 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.

[–] [email protected] 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)

[–] [email protected] 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

load more comments (2 replies)
[–] [email protected] 2 points 2 years ago
[–] [email protected] 23 points 2 years ago (2 children)

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

[–] [email protected] 36 points 2 years ago

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

[–] [email protected] 20 points 2 years ago (2 children)

Unfortunately, bash syntax isnt amazing either

[–] [email protected] 18 points 2 years ago (1 children)
[–] [email protected] 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.

[–] echindod 6 points 2 years ago

Fish? I like fish.

[–] [email protected] 2 points 2 years ago (1 children)

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

[–] [email protected] 1 points 2 years ago

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

[–] [email protected] 13 points 2 years ago (1 children)

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

[–] [email protected] 18 points 2 years ago* (last edited 2 years ago) (2 children)
[–] [email protected] 5 points 2 years ago

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

[–] [email protected] 3 points 2 years ago (1 children)

Updating pacman is always pacman -yuS

[–] [email protected] 1 points 2 years ago
[–] [email protected] 8 points 2 years ago (1 children)
[–] [email protected] 45 points 2 years ago* (last edited 2 years ago) (2 children)

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

Image

[–] [email protected] 34 points 2 years ago* (last edited 2 years ago) (1 children)
[–] [email protected] 4 points 2 years ago

Oh man, it comes full circle

[–] [email protected] 6 points 2 years ago (1 children)

Also rm, cat, mkdir, cd, curl, what else

[–] [email protected] 15 points 2 years ago (2 children)

mkdir is literally a DOS command homie.

[–] [email protected] 2 points 2 years ago (3 children)

Isn't it md and mkdir is just an alias in Powershell to accommodate Linux users?

[–] [email protected] 13 points 2 years ago* (last edited 2 years ago)

Every command that isn't fully expanded PowerShell commands is an alias. dir and ls are both aliases for Get-ChildItem.

[–] [email protected] 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

[–] [email protected] 2 points 2 years ago (1 children)

MD and MKDIR are ancient DOS commands.

[–] [email protected] 2 points 2 years ago

I didn't actually know this, thanks for pointing out