You are viewing a single thread.
View all comments
104 points
*

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

permalink
report
reply
22 points

Git likes to have a word with you.

permalink
report
parent
reply
34 points
*

Command ‘Git’ not found

permalink
report
parent
reply
12 points

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

permalink
report
parent
reply
23 points

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

permalink
report
parent
reply
9 points

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.

permalink
report
parent
reply
11 points
*

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.

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
3 points

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.

permalink
report
parent
reply
9 points
*

My naming convention for C++ is that custom types are capitalized and instances aren’t. So I might write User user;.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
0 points

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

permalink
report
parent
reply
2 points

It’s not about software. Program, PROGRAM were just placeholders for content. I know you can think more abstract and argue in better faith than this.

permalink
report
parent
reply
0 points

I think if you can write them in two different ways it should consider them two different things

permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

I use Arch btw


Sister communities:
Community rules
  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

Community stats

  • 7.4K

    Monthly active users

  • 910

    Posts

  • 15K

    Comments