1775
.DS_Store (sh.itjust.works)
you are viewing a single comment's thread
view the rest of the comments
[-] Takumidesh@lemmy.world 66 points 2 years ago* (last edited 2 years ago)

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 -2 points 2 years ago* (last edited 2 years ago)

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 4 points 2 years ago
[-] Kissaki@programming.dev 2 points 2 years ago

Why would you order lowercase before uppercase?

[-] gazter@aussie.zone 4 points 2 years ago

Ascending order implies going from low to high

[-] SLVRDRGN@lemmy.world 1 points 2 years ago

I guess the problem is that they were thinking First to Last when putting it in this order. Kind of like the image here:

load more comments (11 replies)
load more comments (12 replies)
load more comments (22 replies)
this post was submitted on 28 Jan 2025
1775 points (99.7% liked)

Programmer Humor

34353 readers
1291 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 3 years ago
MODERATORS