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

Programmer Humor

19618 readers
783 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
 
top 50 comments
sorted by: hot top controversial new old
[–] candyman337@sh.itjust.works 136 points 1 year ago (13 children)

I like that you actually can ls in power shell now

[–] TheChefSLC@lemmy.sdf.org 52 points 1 year ago (1 children)

Yes, yes you can.

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

[–] csolisr@communities.azkware.net 17 points 1 year ago (2 children)

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

[–] DJArbz@lemmy.notmy.cloud 7 points 1 year ago (2 children)

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

[–] csolisr@communities.azkware.net 7 points 1 year ago (1 children)

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

[–] Kangie@lemmy.srcfiles.zip 5 points 1 year 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.

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.

load more comments (1 replies)
load more comments (1 replies)
[–] ox0r@jlai.lu 23 points 1 year ago (2 children)

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

[–] affiliate@lemmy.world 31 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 14 points 1 year ago (2 children)

Unfortunately, bash syntax isnt amazing either

[–] newIdentity@sh.itjust.works 16 points 1 year ago (1 children)
[–] ______@lemm.ee 6 points 1 year ago (3 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@programming.dev 6 points 1 year ago

Fish? I like fish.

load more comments (2 replies)
[–] Yearly1845@reddthat.com 9 points 1 year ago (1 children)

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

[–] ______@lemm.ee 6 points 1 year ago (2 children)

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

load more comments (2 replies)
[–] Kangie@lemmy.srcfiles.zip 20 points 1 year ago

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

[–] Scrof@sopuli.xyz 17 points 1 year ago (1 children)

PowerShell 7 is pretty sweet ngl

[–] UndefinedIsNotAFunction@programming.dev 5 points 1 year ago (4 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.

load more comments (4 replies)
[–] Halafax@kbin.social 10 points 1 year ago (1 children)

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

[–] Ew0@lemmy.sdf.org 13 points 1 year ago* (last edited 1 year ago) (3 children)

That's actually "-la", pal.

[–] Redjard@lemmy.dbzer0.com 4 points 1 year ago

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

load more comments (2 replies)
[–] spez@sh.itjust.works 8 points 1 year ago (1 children)
[–] candyman337@sh.itjust.works 31 points 1 year ago* (last edited 1 year ago) (2 children)

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

Image

[–] SatyrSack@lemmy.one 24 points 1 year ago* (last edited 1 year ago) (1 children)
load more comments (1 replies)
load more comments (1 replies)
load more comments (7 replies)
[–] Nioxic@lemmy.dbzer0.com 47 points 1 year ago (7 children)
[–] Nintendo@lemmy.world 45 points 1 year ago (1 children)

what did you say? say that again to my face, I dare you.

[–] Nioxic@lemmy.dbzer0.com 4 points 1 year ago

I apologize. I didnt mean to offend anyone!

[–] SturgiesYrFase@lemmy.ml 16 points 1 year ago

Well that's rude.....

[–] lugal@sopuli.xyz 9 points 1 year ago (1 children)
[–] nodiet@feddit.de 8 points 1 year ago (2 children)
load more comments (2 replies)
load more comments (4 replies)
[–] vox@sopuli.xyz 32 points 1 year ago* (last edited 1 year ago) (4 children)

use powershell (specifically the core version!!!), or even better something like Nu shell

load more comments (4 replies)
[–] over_clox@lemmy.world 27 points 1 year ago (1 children)

echo dir %1 %2 %3>%windir%\system32\ls.bat

Something like that should fix the problem, I think...

[–] 01189998819991197253@infosec.pub 24 points 1 year ago (1 children)

Add ls.bat in your windows directory with dir as the source. It basically acts as an alias.

[–] jasondj@ttrpg.network 20 points 1 year ago (2 children)

Still won’t help me when I type ifconfig or dig, though.

Also I’ve noticed there is also a curl in Windows CLI that I believe is based on libcurl, but when called from powershell is an alias for (iirc) Invoke-WebRequest.

[–] w2tpmf@lemmy.world 13 points 1 year ago

ifconfig doesn't even work in a lot of Linux distros anymore.

[–] jvisick@programming.dev 4 points 1 year ago (1 children)

I came across this one just yesterday and while it was convenient at first, I immediately got frustrated when I went to add some parameters and discovered it wasn’t actually curl

[–] JustBrian7872@feddit.de 6 points 1 year ago (1 children)

Classic PoweShell experience. Try rm -rf - I wonder why they added the aliases in the first place. Only frustrating to type different arguments which are also more verbose. Tastes like the good ol' embrace-extend-extinguish.

load more comments (1 replies)
[–] stark@qlemmy.com 18 points 1 year ago

Thank Microsoft for PowerShell

[–] shasta@lemm.ee 11 points 1 year ago (6 children)

Cmd? What century is this? Use powershell

load more comments (6 replies)

It'll always be "Bad command or file name" to me.

[–] NotYourSocialWorker@feddit.nu 5 points 1 year ago

Yes but it can do "cd.."

load more comments
view more: next ›