How to name my files?

最近看到了一個(gè)小視頻,教大家怎么命名自己的文件??赐曛笊钣懈杏|,對(duì)于我這種沒(méi)有調(diào)理的人來(lái)說(shuō),太有用了。希望自己以后可以不偷懶~現(xiàn)在花的時(shí)間是為了以后節(jié)省時(shí)間>_<
https://rawgit.com/Reproducible-Science-Curriculum/rr-organization1/master/organization-01-slides.html#5
Payoffs accumulate as your skills evolve and projects get more complex

Awesome file names :)

image.png

Three principles for (file) names

1.Machine readable

  • Regular expression and globbing friendly(設(shè)置關(guān)鍵詞以便于篩選)
    Avoid spaces, punctuation, accented characters, case sensitivity


    image.png

image.png

學(xué)會(huì)使用下劃線
image.png

  • Easy to compute on
    Deliberate use of delimiters

2.Human readable

  • Name contains info on content

  • Connects to concept of a slug from semantic URLs

Plays well with default ordering

  • Put something numeric first(給文件編號(hào))

  • Use the ISO 8601 standard for dates(標(biāo)記日期)

*Left pad other numbers with zeros


image.png

image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 轉(zhuǎn)載自:https://github.com/crazyhottommy/getting-started-with...
    iColors閱讀 1,472評(píng)論 0 2
  • 夜鶯2517閱讀 128,192評(píng)論 1 9
  • 我是黑夜里大雨紛飛的人啊 1 “又到一年六月,有人笑有人哭,有人歡樂(lè)有人憂愁,有人驚喜有人失落,有的覺(jué)得收獲滿滿有...
    陌忘宇閱讀 8,877評(píng)論 28 54
  • 信任包括信任自己和信任他人 很多時(shí)候,很多事情,失敗、遺憾、錯(cuò)過(guò),源于不自信,不信任他人 覺(jué)得自己做不成,別人做不...
    吳氵晃閱讀 6,382評(píng)論 4 8

友情鏈接更多精彩內(nèi)容