this post was submitted on 26 Aug 2023
1376 points (97.3% liked)

Programmer Humor

24932 readers
1158 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
 
top 50 comments
sorted by: hot top controversial new old
[–] Nioxic@lemmy.dbzer0.com 46 points 2 years ago (6 children)
[–] Nintendo@lemmy.world 49 points 2 years ago (1 children)

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

[–] Nioxic@lemmy.dbzer0.com 5 points 2 years ago

I apologize. I didnt mean to offend anyone!

[–] AnUnusualRelic@lemmy.world 26 points 2 years ago (2 children)

Why are DOS commands always so verbose?

[–] SubArcticTundra@lemmy.ml 4 points 2 years ago

Wait till I tell you about Pause

[–] SturgiesYrFase@lemmy.ml 18 points 2 years ago

Well that's rude.....

Too many letters

[–] lugal@sopuli.xyz 9 points 2 years ago (1 children)
[–] nodiet@feddit.de 8 points 2 years ago (1 children)
[–] lugal@sopuli.xyz 5 points 2 years ago (1 children)

Achso, schade, aber kann man nichts machen

[–] RaivoKulli@sopuli.xyz 3 points 2 years ago

Just makes the command prompt climb into a hole

[–] vox@sopuli.xyz 37 points 2 years ago* (last edited 2 years ago) (4 children)

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

load more comments (4 replies)
[–] 01189998819991197253 34 points 2 years ago (1 children)

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

[–] jasondj@ttrpg.network 22 points 2 years 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 16 points 2 years ago

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

[–] jvisick@programming.dev 5 points 2 years 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 2 years 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)
[–] over_clox@lemmy.world 28 points 2 years ago* (last edited 2 years ago) (1 children)

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

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

[–] hemko@lemmy.dbzer0.com 13 points 2 years ago (1 children)
[–] over_clox@lemmy.world 9 points 2 years ago (1 children)
[–] hemko@lemmy.dbzer0.com 4 points 2 years ago* (last edited 2 years ago) (1 children)

Not gonna lie I love easily readable scripts. Powershell was my first, and as much pain it can be it's for sure readable even for the most novice.

Maybe that's why I love Python too, but have hard time learning sh past very basics...

Edit: oh lol that's a fork bomb, curiosity won and had to ddg what that is. Love the simplicity of that

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

Thank Microsoft for PowerShell

[–] shasta@lemm.ee 18 points 2 years ago (4 children)

Cmd? What century is this? Use powershell

[–] stevedidWHAT@lemmy.world 11 points 2 years ago (2 children)

I’m gonna take it a step further and say to use the new Terminal app from the winapp store which lets you integrate ALL command lines into one app and it looks snazzy to boot!

Check it out mother fuckers!

[–] shasta@lemm.ee 6 points 2 years ago (3 children)

Yes I love it. It's on w11 by default

load more comments (3 replies)
[–] anonymoose@lemmy.ca 3 points 2 years ago

Agreed. Terminal is the shite. Makes working in WSL Ubuntu really rewarding.

[–] inclementimmigrant@lemmy.world 4 points 2 years ago (2 children)

I've found that powershell doesn't play nice with many command line developer tools so cmd it is.

load more comments (2 replies)
[–] Rolive@discuss.tchncs.de 3 points 2 years ago (2 children)

My brain is still hardwired to do Win+R CMD Enter..

load more comments (2 replies)
load more comments (1 replies)
[–] NotYourSocialWorker@feddit.nu 7 points 2 years ago

Yes but it can do "cd.."

[–] WhiskyTangoFoxtrot@lemmy.world 7 points 2 years ago

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

[–] infinitevalence@discuss.online 6 points 2 years ago

God everytime!

[–] candyman337@sh.itjust.works 5 points 2 years ago (7 children)

I like that you actually can ls in power shell now

[–] TheChefSLC@lemmy.sdf.org 3 points 2 years ago

Yes, yes you can.

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

load more comments (6 replies)
[–] dylanTheDeveloper@lemmy.world 4 points 2 years ago

sfc/scannow

[–] gandalf_der_12te@feddit.de 3 points 2 years ago

Memories we all share.

load more comments
view more: next ›