this post was submitted on 22 Sep 2025
966 points (98.9% liked)

Programmer Humor

26551 readers
1715 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
(page 2) 50 comments
sorted by: hot top controversial new old
[–] BuboScandiacus@mander.xyz 7 points 2 days ago

“_” to the rescue

[–] SnotFlickerman@lemmy.blahaj.zone 14 points 3 days ago (1 children)
[–] floquant@lemmy.dbzer0.com 11 points 3 days ago

Yep, exactly. And tab. \ is weird at first but makes sense if you think about it

[–] BombOmOm@lemmy.world 14 points 3 days ago (1 children)

I'm a big fan of PascalCase. ThisIsAGreatFilename.odt

load more comments (1 replies)
[–] Lyra_Lycan@lemmy.blahaj.zone 11 points 3 days ago* (last edited 3 days ago)

Windows is stupid as shit, trying to shift+right click > open Powershell in a path containing a space results in it throwing an error, and you have to paste the path in yourself anyway

[–] ronigami@lemmy.world 11 points 3 days ago (7 children)

If your code is written well, it shouldn’t matter.

load more comments (7 replies)
[–] lucg@lemmy.world 8 points 3 days ago (1 children)

Now I'm imagining a shell that looks iteratively through arguments to find where quotes would make total sense

$ ls
my victims.ods
$ wipe -f my victims.ods --thorough

So the shell would go like

  1. wipe → command name found, ok
  2. -f → no file in the current directory starts with that, skip
  3. my → matches a file, keep in memory...
  4. my victims.ods → full match, but missing quotes!
  5. Prompt user:
Filename "my victims.ods" found without quotes. Choose:
[a]dd quotes this time
[A]lways add quotes (dangerous)
[n]o quotes today please
[N]ever offer adding quotes again
[t]ell me what could possibly go wrong when I choose to always add quotes
[P]unch the person who proposed this feature
[–] BatmanAoD@programming.dev 7 points 3 days ago (2 children)

For interactive use, tab-completion essentially makes this a non-issue, because shells add escaping in the appropriate places.

For scripting, where spaces are harder to deal with, unfortunately there's just not much you can do; your two options are basically to learn all of your particular shell's patterns for dealing with whitespace in filenames, or only write scripts in something other than a POSIX shell.

load more comments (2 replies)
[–] krunklom@lemmy.zip 2 points 2 days ago* (last edited 2 days ago)

Mv /home/"$USER"/Downloads /home/"$USER"/downloads

[–] Jankatarch@lemmy.world 1 points 2 days ago

capital letters.

load more comments
view more: ‹ prev next ›