Live data from Hacker News

What Mac OS’s case-insensitive filenames teaches us

medium.com

1–10 of 10 posts

Re: What Mac OS’s case-insensitive filenames teaches us

#4

Ran into this issue with CI and git. Was so difficult to track down. Now all Macs on my team are reformatted to be case sensitive because of this. Thankfully it's an option now.

It’s been an option since basically forever (I think you could use HFS+ case sensitive on Tiger, even).

But it breaks a large number of apps, so do it with caution.

Re: What Mac OS’s case-insensitive filenames teaches us

#5

Ran into this issue with CI and git. Was so difficult to track down. Now all Macs on my team are reformatted to be case sensitive because of this. Thankfully it's an option now.

Do case sensitive file systems still break Adobe software?

Re: What Mac OS’s case-insensitive filenames teaches us

#6
It’s not just macOS, Windows has the same, with all the same associated problems.

For that reason, I generally prefer to keep all file names consistently lower-case - user_account.ex over UserAccount.ex. It’s just as easy to read, if not more so.

We have enough other things to worry about as programmers without having to think about correct capitalisation of file names.

Re: What Mac OS’s case-insensitive filenames teaches us

#8
post #3

This is written as if it was some kind of lesson on philosophy. Why were you even using uppercase letters in your file names to begin with?

I was applying a pattern of naming the files containing ORM Models with a capital, in order to represent that they contained a javascript class as their default export.

e.g.

    class Admin extends Model {
    };

    export default Admin;

Re: What Mac OS’s case-insensitive filenames teaches us

#10
post #4

Ran into this issue with CI and git. Was so difficult to track down. Now all Macs on my team are reformatted to be case sensitive because of this. Thankfully it's an option now.

It’s been an option since basically forever (I think you could use HFS+ case sensitive on Tiger, even). But it breaks a large number of apps, so do it with caution.

And this is still an issue

I have had issues with this and instead of formatting, due to issues, what I ended up recommending was creating disk images, mounting them correctly and putting files there.