TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

What Mac OS’s case-insensitive filenames teaches us

3 点作者 paulbjensen超过 5 年前

5 条评论

latchkey超过 5 年前
The filesystem is case preserving.<p><a href="http:&#x2F;&#x2F;www.informit.com&#x2F;articles&#x2F;article.aspx?p=1144082&amp;seqNum=4" rel="nofollow">http:&#x2F;&#x2F;www.informit.com&#x2F;articles&#x2F;article.aspx?p=1144082&amp;seqN...</a>
mikl超过 5 年前
It’s not just macOS, Windows has the same, with all the same associated problems.<p>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.<p>We have enough other things to worry about as programmers without having to think about correct capitalisation of file names.
michalc超过 5 年前
I think it also teaches that Postel’s robustness principle isn’t always a good thing.<p>If the MacOS filesystem was not case-insensitive, i.e. it was _less_ liberal with what it accepted, the reported issue wouldn’t have happened.
nkristoffersen超过 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&#x27;s an option now.
评论 #21490974 未加载
评论 #21491080 未加载
ikrtx超过 5 年前
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?
评论 #21491326 未加载