3 ms·
>I've never liked case-sensitivity in file-systems, personally. I've always found it to be annoying with no utility that I could discern. The utility is that t
by coldtea 9y ago
>I've never liked case-sensitivity in file-systems, personally. I've always found it to be annoying with no utility that I could discern.
The utility is that the filenames are digitally unambiguous buckets of bytes and we avoid 1000000 ways things can go wrong with case-insensitivity, plus the huge performance penalties.
Sometimes catering to how the machine works makes things better than going through hoops for marginal returns and complicating every part of the stack with that technical debt.
>If main.h and Main.h are truly different, I find it more useful to make the file name more descriptive than just changing letters.
Well, main.h and Main.h are visually different, aren't they?
- eridius 9y agoFilenames are not buckets of bytes. They're human-readable strings. Treating them as buckets of bytes is a great way to end up in very confusing situations, like having two files named "über.png" with no way to visually distinguish them.
- zlynx 9y agoI like that they ARE buckets of bytes on Unixen. As an analogy take the common text file. Would you like it if the read() and write() system calls looked at the file extension and refused to write non-ASCII or non-Unicode into it? I would not like that. The flexibility to do whatever I want with those bytes is more important than guaranteeing correct text encoding. If someone wants that for their system, make the user software do it, not the kernel.
- michaelmrose 9y agoEasily avoided, just don't do that. I've never encountered such.
- coldtea 9y ago>Treating them as buckets of bytes is a great way to end up in very confusing situations, like having two files named "über.png" with no way to visually distinguish them. That's only because of a similar cluster-fuck that is unicode compound characters and normalization schemes. One and only one unambiguous code per different visible glyph would have been too much to ask...
- michaelmrose 9y agoThis situation is a non issue in real life. Computers have no issue distinguishing them and people don't create them.
- coldtea 9y agoYou'd be surprised. For one, they allow certain kinds of attacks.
- gattilorenz 9y ago> Sometimes catering to how the machine works makes things better than going through hoops for marginal returns and complicating every part of the stack with that technical debt. You might be interested in reading "the design of everyday things" by Norman. If you are developing something for your own use, who cares. But for something that users (even technical users) are going to use, these marginal returns are what makes the difference between a pleasant or a frustrating experience. It's the kind of things that Apple users (used to?) expect in Macs.
- coldtea 9y ago>You might be interested in reading "the design of everyday things" by Norman. I've read it 20+ years ago as suggested by a HCI class at the uni. The point still stands, regardless of whether it's something for "one's own use" or not. The technical debt from such decisions like a non-case-sensitive fs and the piles upon piles of kludges required to sustain it affect everybody, including the "non technical users". >these marginal returns are what makes the difference between a pleasant or a frustrating experience Users can be taught a simple, unambiguous rule, and they'll never think twice about it. "Pleasant experiences" that come with performance penalties, bugs and caveats on the other hand, make them suffer more, whether they know the cause or not. At some point the Clippy was somebody's idea to "delight the users" too. >It's the kind of things that Apple users (used to?) expect in Macs. And the kind of thing Apple itself decided it was not worth it.
- gattilorenz 9y agoI don't really see these piles of kludges, honestly. Windows and OS X do it without much fanfare (which is great, consistency between the two major desktop OSes), and it works as users expect. Now, if we take the example in this thread (INSTALL and install), WHY ON EARTH did the programmer think it was a great idea to do name files like that? Sure, INSTALL for a readme is a tradition in free/*nix software, but then s/he could rename the other file. It seems to me that what really affects users are these nonsensical decisions taken without ease of use and ergonomics in mind. In 99.9% of cases (no pun intended), case sensitivity is useless and needlessly confusing, which is why you don't use variables named buffer and Buffer in the same scope (I hope), even if you can. > And the kind of thing Apple itself decided it was not worth it. Well, I'm still using a Mac because I think the whole experienced is way more polished and consistent than any other Unix, or Windows. And I'm sure many here agree.