this post was submitted on 01 Feb 2025
1424 points (99.0% liked)

Programmer Humor

20383 readers
1855 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] 74 points 5 days ago* (last edited 5 days ago) (6 children)

Fun fact, though: Linux is the only case-sensitive one.

Edit: I feel silly for forgetting that it's all about the choice of FS. If anyone needs anything from me, I'll be in the corner, coloring.

[–] [email protected] 63 points 5 days ago (3 children)

From a technical standpoint, the windows NTFS filesystem is designed inherently case sensitive, just windows doesn't allow creating case sensitive files.

Connecting an NTFS drive to linux, you can create two separate files readme.txt and Readme.txt.

Using windows, you can see both files in the filesystem, but chances are most (if not all) software will struggle accessing both files, opening readme.txt might instead open Readme.txt or vice versa.

[–] [email protected] 33 points 5 days ago (1 children)

Such a microsoft thing to do.

[–] [email protected] 18 points 5 days ago* (last edited 5 days ago)

NTFS was designed back in the mid 90s, when the plan was to have the single NT kernel with different subsystems on top of it, some of those layers (i.e. POSIX) needed case sensitivity while others (Win32 and OS/2) didn't.

It only looks odd because the sole remaining subsystem in use (Win32) barely makes use of any of the kernel features, like they're only just now enabling long file paths.

[–] [email protected] 16 points 5 days ago

For a few years now, Windows has had the capability of marking certain directories as case-sensitive. So you can have a mixed-case-sensitivity filesystem experience now. Yeah. :/

[–] [email protected] 3 points 5 days ago

You're correct. I once was trying to rename a file in Windows in a git repository that had a wrong capitalization. It was tricky.

[–] [email protected] 15 points 5 days ago

I once ran into a bug in an Arduino program where it wouldn't compile. The author blamed my "broken environment". Turned out, he had included "arduino.h" instead of the correct "Arduino.h".

[–] [email protected] 19 points 5 days ago* (last edited 5 days ago) (1 children)

Although you can use case insensitive filesystems with Linux, and case sensitive filesystems with macOS. I believe the case sensitivity is a function of the specific filesystem


but yeah, practically, the root for Linux is always case sensitive, and APFS ~~ain't~~ is only if you ask it to be ( https://support.apple.com/lv-lv/guide/disk-utility/dsku19ed921c/mac ).

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

When case insensitivity is the default I always wonder how many apps unknowingly rely on that due to typos somewhere. I encountered this once while porting a Windows/macOS app to Linux that someone imported a module with the wrong case and nobody noticed

[–] Orygin 3 points 4 days ago

The source engine does not handle case sensitivity when loading assets from disk. On windows it's not an issue but on Linux it will silently fail to load assets if the case doesn't match. I lost so many hours trying to fix some weapon animation that had 0 seconds run time when porting a mod dedicated server to Linux.

[–] [email protected] 2 points 5 days ago

VS Codium did that at some point, it probably still does but I haven't checked

[–] [email protected] 10 points 5 days ago (1 children)
[–] [email protected] 4 points 4 days ago

But why? What is the point?

That you can give 2 different files the same name? Because that would confuse the hell out of every regular user. Especially if you work on a network share and have an entire directory full of same named files because everyone and their grandma throws their files in there.

It is almost as bad as Case Sensitive Usernames and email.

[–] [email protected] 8 points 5 days ago (5 children)

Least favorite part of linux honestly

[–] [email protected] 23 points 5 days ago (2 children)

Case-insensitive filesystems are for maniacs. They are only causing trouble. Ever had two folders with the same name but different capitalization in windows? You see both, but whichever you click it will always open the same one, while the other can't be accessed. Psychopath behavior.

[–] [email protected] 4 points 4 days ago (2 children)

In my decades of IT work I have literally never seen this to be an issue. To myself or others.

[–] [email protected] 0 points 4 days ago (1 children)

Your username is 3 words. At a quick glance maybe they are 3 directories. I guess I have to use another command to find out.

[–] [email protected] 1 points 4 days ago
[–] [email protected] 4 points 5 days ago

That's because NTFS isn't case-insensitive. If it was there'd be no two folders. Windows is a case-insensitive operating system running on a case-sensitive file system. It's pretty clear Microsoft wanted case sensitivity and then realised how much legacy software that'd break.

[–] [email protected] 11 points 5 days ago (4 children)

Hard disagree. I don't understand why anyone would want case insensitive.

Am I the only one who doesn't go around mindlessly capitalizing letters? Do people find it too difficult to capitalize things?

Do you want case insensitive passwords too?

If I type X I mean X and only X. Uppercase letters are different letters, just like X and Y are different letters.

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

Uppercase letters are different letters

No, they're different glyphs, they'd still be alphabetized the same way as X and x are the same letter

[–] [email protected] 5 points 5 days ago

Passwords ≠ Filesystems

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

It's less about me randomly capitalizing letters and more about me not remembering whether or not what I'm looking for had capitals or not.

[–] [email protected] -2 points 4 days ago
[–] [email protected] 11 points 5 days ago (1 children)

Makes changing the case of a file/folder a lot easier though. Windows you have to rename it to something else then rename it again just to change case but Linux you can just...rename it. It's a small thing but it's something

[–] [email protected] 2 points 5 days ago

is this bug really impossible to fix just because the file system is case insensitive?

[–] brotundspiele 1 points 4 days ago (1 children)

It's a big difference whether a folder is named PetersHits or PeterShits. So what should I expect when opening a folder called petershits? Pictures of Peter on the potty or some great songs?

[–] [email protected] 1 points 4 days ago

Peters-Hits You okay?

[–] [email protected] 3 points 5 days ago

You can turn it off, at least for ext4: https://lwn.net/Articles/784041/

[–] [email protected] 5 points 5 days ago

On MacOS you get a choice when you format the drive.