News for hackers. Stuff that matters.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by hyperion2010 on Sunday June 28, 2015 @11:46AM (#9793909)
> it’s the place where case sensitivity problems really show up

Who made the decision to have case insensitive file systems? If I had a time machine they would be high on the list of people to visit and give a stern talking to.

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by hga on Sunday June 28, 2015 @12:36PM (#9794079)
If I had a time machine they would be high on the list of people to visit and give a stern talking to.

Problem is that this goes back a long ways, e.g. back to the days of 36 bit computers.

Why 36 bits? Because that was just enough to encode 10 decimal digits, the standard back then for scientific computation.

Back then as in the days before core memory was used, so not much main memory either, and it was still expensive and painful after core was developed. So with that limited a budget, 6 bit character systems were common, that's enough to get things done and you can fit 6 in a word. One reason mainline Lisp doesn't use '?' in function names, why old languages like it and FORTRAN are or were case insensitive.

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by hyperion2010 on Sunday June 28, 2015 @01:00PM (#9794163)
I think the issue is related, but in the underlying problem is slightly different because in the cases you describe there wasn't even enough room for a second set of symbols, so in reality there was no problem. The issue arises when there is a second set of symbols that can be encoded by the computer.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by reitzensteinm on Sunday June 28, 2015 @11:54AM (#9793935)
I don't think the problem is having case insensitive file systems, the problem is having both on different platforms. A similar problem as with different endians. If everything were case insensitive, it wouldn't cause issues.

While as a programmer, I prefer the level of precision case sensitivity provides, I'm hard pressed to make the case that it is better for an average computer user.

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by ploxiln on Sunday June 28, 2015 @12:09PM (#9793982)
... which exact type of case insensitivity would you do? Only for latin letters in ascii? or such letters plus just one accent type? or also less familiar symbols used in other writing systems? Did you know that different languages can contradict one another? [1] Are you also going to normalize unicode representation, like Mac OS X does? (it uses a variant of NFD normalization, which is arguably the wrong one to do but that's life) (I only know this because I've been tripped up by it)

Basically, you can't "just do case insensitive everywhere", that doesn't fix the confusion and inconsistency.

[1] http://www.i18nguy.com/unicode/turkish-i18n.html (see table titled "English vs. Turkish Case Mappings") (this is just the first example I could find with a quick search)

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by reitzensteinm on Sunday June 28, 2015 @12:17PM (#9794012)
Point taken; I made the mistake of writing a prescription for the world based on my narrow English speaking world view.

I stand by what I said for ASCII, but in a Unicode world, I think you're right. When the mapping stops being simple, the principle of least surprise reverses in the favor of case sensitivity.

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by hyperion2010 on Sunday June 28, 2015 @12:18PM (#9794021)
Case insensitivity is a nice way of phrasing "there are these arbitrary mappings between two sets of character codes which are meaningful only to the human being looking at the screen." This only works for ASCII and is complete madness as soon as you consider that any symbol you support for input anywhere in the world can and probably will be used by someone to name their files (try explaining why they can't to an irate user). Really, of the hundreds of thousands of unique symbols that human beings use an arbitrary subset of 26 of them have been deemed to be identical when it comes to naming things with symbols. I would say more but it would come out even worse.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by ygra on Sunday June 28, 2015 @05:16PM (#9795135)
They don't only work for ASCII. While the majority of writing systems in this world do not have case distinction, some that are widely used do. And arguably it is easier for the user to understand. The people who do trip over it are mostly programmers with the wrong assumptions about how things work and then complaining that things can't ever be simple ...
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by natosha_bard on Sunday June 28, 2015 @01:07PM (#9794186)
> I don't think the problem is having case insensitive file systems, the problem is having both on different platforms. A similar problem as with different endians. If everything were case insensitive, it wouldn't cause issues.

Indeed; if everything were case-sensitive, or case-insensitive, we definitely wouldn't have these problems. But alas, it's not, and in 2015 here we are still having problems with case sensitivity. :-P

> While as a programmer, I prefer the level of precision case sensitivity provides, I'm hard pressed to make the case that it is better for an average computer user.

I also personally prefer it ('a' and 'A' are not the same character!!!!), but I'm not sure if thats because it's inherently 'right' or because I'm used to Linux where case sensitivity is more or less a given. :-)

Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by TillE on Sunday June 28, 2015 @11:53AM (#9793928)
People always bring up the point that it's supposed to be more user-friendly, but all of those concerns are really better addressed in the UI rather than in the filesystem layer.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by zem on Sunday June 28, 2015 @01:55PM (#9794341)
what is the ui layer going to do when you have both hello.txt and HELLO.TXT? if case-insensitivity is to be done at all, it has to be enforced at the file system level that the two names refer to the same file.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by toxicFork on Sunday June 28, 2015 @12:15PM (#9794009)
I guess back then things were just more connected, there probably weren't great "best practices", I have seen how there are still some projects that need evolve to be more modular rather than "one file to do EVERYTHING". The OS is just another software project, isn't it?
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by Retra on Sunday June 28, 2015 @12:53PM (#9794137)
That crap is so frustrating. Especially since you can't fix it easily when working between multiple file systems.

    mv: ‘test’ and ‘Test’ are the same file
Thanks, mv. Brilliant.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by lucb1e on Sunday June 28, 2015 @01:00PM (#9794161)
You mean in cygwin or on ntfs or so? Because on GNU/Linux with ext4 this works:

    /tmp $ touch test
    /tmp $ mv test Test
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by seba_dos1 on Sunday June 28, 2015 @02:28PM (#9794476)
Grandparent obviously meant case insensitive filesystems.
Re:Porting the Unity Editor to Linux: Stuff I Wish We’d Done... by ygra on Sunday June 28, 2015 @05:24PM (#9795166)
At least NTFS is case-insensitive and case-preserving and renaming with just a case change usually works.