this post was submitted on 28 Jan 2025
12 points (100.0% liked)

Programmer Humor

23083 readers
1600 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
[–] moseschrute@lemmy.world 1 points 3 months ago (1 children)

…and whoever decided a file system should be case insensitive by default, I hate you.

[–] Reddfugee42@lemmy.world 1 points 3 months ago (2 children)

What's the use case for case sensitive file names

[–] Speiser0@feddit.org 0 points 3 months ago (1 children)

Think the other way around: What's the use case for case insensitive file names? Does it justify the effort and complexity for the filesystem and the programs to know the difference between lower and upper space chars?

[–] mindbleach@sh.itjust.works 1 points 3 months ago* (last edited 3 months ago)

What’s the use case for case insensitive file names?

Human comprehension.

Readme, readme, README, and ReadMe are not meaningfully different to the average user.

And for dorks like us - oh my god, tab completion, you know I mean Documents, just take the fucking d!

[–] Takumidesh@lemmy.world 0 points 3 months ago* (last edited 3 months ago) (1 children)

Well an uppercase ASCII char is a different char than its lowercase counterpart. I would argue that not differentiating between them is an arbitrary rule that doesn't make any sense, and in many cases, is more computationally difficult as it involves more comparisons and string manipulations (converting everything to lower case).

And the result is that you ultimately get files with visually distinct names, that aren't actually treated as distinct, and so there is a disconnect from how we process information and how the computer is doing it.

'A' != 'a', they are just as unequal as 'a' and 'b'

Edit: I would say the use case is exactly the same as programming case sensitivity, characters have meaning and capitalizing them has intent. Casing strategies are immensely prevalent in programming and carry a lot of weight for identifying programmers' intent (properties vs backing fields as an example) similar intent can be shown with file names.

[–] gazter@aussie.zone 0 points 3 months ago* (last edited 3 months ago) (1 children)

If I have four files, a.txt, A.txt, b.txt, and B.txt, in what order do they appear when I sort alphabetically?

edit: I don't understand why this was downvoted?

[–] Wildly_Utilize@infosec.pub 0 points 3 months ago (1 children)
[–] pankkake@lemmy.world 1 points 3 months ago* (last edited 3 months ago)

A computer will spit out A, B, a, b

See also: ASCII chart