you are viewing a single comment's thread
view the rest of the comments
[–] 109 points 2 years ago* (last edited 2 years ago) (4 children)

It's neat that Linux has the ability to do this, but I honestly can't think of a good usecase for this. I think this is more confusing than it is useful

  • source
  • hideshow 8 child comments
  • [–] 24 points 2 years ago (2 children)

    Git likes to have a word with you.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 12 points 2 years ago (1 child)

    Huh, what makes this a use case in favor of case sensitive file names? How does git use this feature?

  • source
  • parent
  • hideshow 2 child comments
  • [–] 26 points 2 years ago (1 child)

    Create multiple branches that only differ in cases from a Unix OS so it breaks git for Windows users in the same project.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 9 points 2 years ago

    We had a repo with some really weird (filename) case issues on Mac also. I could only fix it on my home Linux machine, by deleting all the affected files, committing that, then restoring them with all lowercase names. Only time I've dealt with that in 20 years but it can happen!

  • source
  • parent
  • [–] 9 points 2 years ago (2 children)

    I feel the same way about programming languages. There is no way that "User" and "user" should refer to different variables. How many times has that screwed people up, especially in a weekly typed language?

    One of the many things that I feel modern versions of Pascal got right.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 11 points 2 years ago* (last edited 2 years ago) (2 children)

    Nope. Completely different.

    Case is often used to distinguish scope. Lowercase is local while uppercase is public. "Name = name" is a pretty standard convention, especially in constructors.

    There is a ubiquitous use case in programming. There is not in the file system.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 5 points 2 years ago

    My point is not about how case is meant to be used my point is that it is very easy to make a mistake that is difficult to spot. I think it makes a lot more sense to the case insensitive, and force different names to be used.

  • source
  • parent
  • [–] 3 points 2 years ago

    This is the first time I've seen uppercase denoting scope. Usually it is done with a "_" or "__" prefix.

    Casing styles usually mean different identifier types.

    snake_case or pascalCase for functions and variables, CamelCase for types, UPPER_SNAKE_CASE for constants, and so on.

    If we want to apply this to file systems, you could argue something like: CamelCase for directories, snake_case for files, pascalCase for symlinks, UPPER_SNAKE_CASE for hidden files.

  • source
  • parent
  • [–] 1 point 2 years ago (1 child)

    It's quite useful for stuff like PROGRAM and Program in the same directory where PROGRAM is the program itself and Program is some unrelated files about the program. Bad example, but the case stands.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 0 points 2 years ago (1 child)

    So what you're telling me is that it's useful when the software you use is made by absolute idiots?

  • source
  • parent
  • hideshow 2 child comments