this post was submitted on 02 Oct 2023
1350 points (96.6% liked)

Programmer Humor

19821 readers
2 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
[–] aleq@lemmy.world 120 points 1 year ago (5 children)

Reasonable and sane behavior of cd. Just get into the habit of always using lower case names for files and directories, that's how our forefathers did it.

[–] drolex@sopuli.xyz 90 points 1 year ago (1 children)

Yes, but this is the default on many distros, so for once the end user is not to blame

[–] MooseBoys@lemmy.world 44 points 1 year ago (6 children)

Even worse, many components will ignore the XDG_DOWNLOAD_DIR var so even if you manually change it to $HOME/downloads (lower-case) it will often break things.

[–] Synthead@lemmy.world 34 points 1 year ago (1 children)

Keep filling those bugs and stop complaining on random forums, kids

load more comments (1 replies)
[–] schnurrito@discuss.tchncs.de 28 points 1 year ago (1 children)

Something something symlink Downloads to downloads

load more comments (1 replies)
load more comments (4 replies)
load more comments (4 replies)
[–] Sh1nyM3t4l4ss@lemmy.world 87 points 1 year ago (13 children)

Use a shell with decent auto-completion. I have not been irritated by this in years.

[–] nogooduser@lemmy.world 25 points 1 year ago (6 children)

Won’t autocomplete fail if you do “cd d” and then try the autocomplete?

Or is that what you mean by “decent” auto-completion?

[–] bdonvr@thelemmy.club 29 points 1 year ago

No, it will probably go to "Documents", and if you hit tab again it should go to "Downloads". (Assuming you have the normal default folders)

[–] rasensprenger@feddit.de 24 points 1 year ago

bash's autocomplete fails (at least with default settings), but e.g. zsh can figure out what you mean

load more comments (4 replies)
load more comments (12 replies)
[–] MonkderZweite@feddit.ch 82 points 1 year ago (6 children)

You've come from Windows and have brought dangerous expectations.

[–] naught@sh.itjust.works 18 points 1 year ago (1 children)

MacOS has a case insensitive file system. It causes me untold grief

[–] sysadmin420@lemmy.world 26 points 1 year ago* (last edited 1 year ago) (1 children)

Is a 40 year old it guy who love linux, wat

Macos is case insensitive?!

[–] sudo@lemmy.today 15 points 1 year ago (10 children)

OSX offers both case sensitive and case insensitive filesystems

load more comments (10 replies)
load more comments (5 replies)
[–] Asswaterpirate@lemmy.world 74 points 1 year ago (1 children)
load more comments (1 replies)
[–] SnowdenHeroOfOurTime@unilem.org 61 points 1 year ago (2 children)

This is a feature, not a bug

[–] Potatos_are_not_friends@lemmy.world 30 points 1 year ago (7 children)

Right? I rather not have a computer automatically autocorrect.

load more comments (7 replies)
[–] MJBrune@beehaw.org 13 points 1 year ago (8 children)

All folders and files should be in lower case.

load more comments (8 replies)
[–] HatFunction@lemmy.world 57 points 1 year ago* (last edited 1 year ago) (2 children)

This is completely unrelated to the meme at hand, but the title just reminded me that for a while, Merriam-Webster mistakenly included the word "Dord" to mean density - because an editor misread the entry for "D or d" as an abbreviation of density.

Wikipedia

load more comments (2 replies)
[–] MerfMerf@feddit.nu 53 points 1 year ago (5 children)

echo 'set completion-ignore-case On' >> ~/.inputrc

[–] PupBiru@kbin.social 16 points 1 year ago* (last edited 1 year ago) (1 children)

also idk does zsh do this automatically? don’t think i’ve ever had this problem except on legacy AF servers

i mean… unless you don’t tab complete, but then who doesn’t spam tab 30 times every keystroke?

load more comments (1 replies)
load more comments (4 replies)
[–] CodexArcanum@lemmy.world 35 points 1 year ago* (last edited 1 year ago) (12 children)

I love how many people brought up the Turkish "I" as if everyone here is on the Unicode steering committee or just got jobs for Turkish facebook.

I, an English speaker, have personally solved the problem by not having a Turkish I in the name of my Downloads directory, or any other directory that I need to cd into on my computer. I'm going to imagine the Turks solve it by painstakingly typing the correct I, or limiting their use of uppercase I's in general.

In fact, researching the actual issue for more than 1 second seemingly shows that Unicode basically created this problem themselves because the two I's are just seperate letters in Turkic languages. https://en.m.wikipedia.org/wiki/Dotted_and_dotless_I_in_computing

If you nerds think this is bad try doing Powershell for any amount of time. It is entirely case-insensitive.

load more comments (12 replies)
[–] ayushnix@lemmy.sdf.org 29 points 1 year ago (1 children)

using capital letters in file/directory names on Linux :|

[–] jonne@infosec.pub 41 points 1 year ago* (last edited 1 year ago) (2 children)

It's a default on some distros, unfortunately, and changing it without updating the necessary env vars will break a bunch of stuff.

load more comments (2 replies)
[–] starman@programming.dev 28 points 1 year ago* (last edited 1 year ago)

So you type cd D tab and it brings you to Documents

[–] newIdentity@sh.itjust.works 25 points 1 year ago* (last edited 1 year ago) (4 children)

Use Zsh or Fish and tab completion.

load more comments (4 replies)
[–] Feyter@programming.dev 25 points 1 year ago (12 children)

I don't get it... "D" is a complete different character than "d" is.

It's like wondering why "file1" is not opened when I typed in "file2".

[–] Swedneck@discuss.tchncs.de 22 points 1 year ago (1 children)

that's not how language works though, in human language (i know this can be confusing) d and D are the same letter just in different forms.

It's one thing to have case sensitivity in programs doing data manipulation, that makes sense because you don't want the program to accidentally use the wrong files without supervision.

But when you have an interactive prompt you know what you're doing, you can see if you entered the wrong directory, and you're generally going to be working in directories that you have yourself organized.

load more comments (1 replies)
load more comments (11 replies)
[–] catlover@sh.itjust.works 24 points 1 year ago

alias d="cd ~/Downloads"

[–] onlinepersona@programming.dev 22 points 1 year ago
[–] pchem@feddit.de 21 points 1 year ago* (last edited 1 year ago)
[–] muntedcrocodile@lemmy.world 21 points 1 year ago (4 children)

Doesn't fish basically fix this?

[–] pgp@sh.itjust.works 58 points 1 year ago (5 children)

This is not a bug, it doesn't need to be fixed.

load more comments (5 replies)
[–] xoggy@programming.dev 15 points 1 year ago (1 children)

You can set bash or zsh to case-insensitive tab completion as well.

load more comments (1 replies)
load more comments (2 replies)
[–] Damage@slrpnk.net 20 points 1 year ago (20 children)
load more comments (20 replies)
[–] krey@sh.itjust.works 19 points 1 year ago (2 children)

If you want to keep case sensitive completion, you can symlink it. It's your home dir. Make yourself comfortable.

load more comments (2 replies)
[–] willya@lemmyf.uk 19 points 1 year ago (1 children)
[–] Moc@lemmy.world 13 points 1 year ago

OP can definitely handle a bigger D

[–] genfood@feddit.de 14 points 1 year ago (1 children)

I seems that I have triggered something, but keep that going, it’s quality content generation. 😬

[–] drolex@sopuli.xyz 22 points 1 year ago (1 children)

Everyone on any Linux thread ever: you are a moron, obviously and you're doing it wrong. Why don't you install another distro, or better yet: modify and recompile your distro to match your desired experience, the code is open source ffs! What do you need? 4 years of work maybe? Come on.

[–] GCostanzaStepOnMe@feddit.de 13 points 1 year ago (3 children)

Anything that slightly improves UX is bloat.

load more comments (3 replies)
[–] xnasero@programming.dev 12 points 1 year ago* (last edited 1 year ago) (8 children)

Op does not know about $CDPATH and tab completion keke

load more comments (8 replies)
load more comments
view more: next ›