瞎扯淡 Gemfile 要改名了

ruchee · September 08, 2017 · Last by neilxp replied at September 20, 2017 · 2592 hits

Gemfile -> gems.rbGemfile.lock -> gems.locked

https://depfu.com/blog/2017/09/06/gemfiles-new-clothes

👎 闲的蛋疼

据说是因为这样可以让编辑器帮你纠正语法,很可能是有进一步的计划,比如增加更多复杂,多样,奇怪,小众情况下的写法。

XXXfile 已经流行开了。。。

@pynix 里面讲到当时用 Gemfile 就是因为 xxxfile 比较流行,现在不流行了,所以改之😂

Reply to shidenggui

怎么就不流行了?

@pynix 原文是 At the time when Bundler came out, the so called “Filefiles” were quite popular

后面不流行而改是我的推测。估计是没有那么 quite popular 了,就找几个理由改改。

Reply to shidenggui

没说不流行,也没表达出改了是因为不流行的意思,而是基于其他原因的考虑,原文有说明。

以前 Makefile 流行,现在 webpack.config.js 流行...

又不是时尚界,流行就是因为这样做有好处呗,比如说语法检查,就看你需不需要这个好处咯。

保持兼容就好吧

编辑器也完全可以根据整个文件的名称来判断语法类型。

比如我这 Rakefile 和 Gemfile 语法高亮并没什么问题。

You need to Sign in before reply, if you don't have an account, please Sign up first.