最近看到了一個(gè)小視頻蹂随,教大家怎么命名自己的文件茁帽∮窆蓿看完之后深有感觸,對(duì)于我這種沒有調(diào)理的人來說潘拨,太有用了吊输。希望自己以后可以不偷懶~現(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 :)
Three principles for (file) names
1.Machine readable
-
Regular expression and globbing friendly(設(shè)置關(guān)鍵詞以便于篩選)
Avoid spaces, punctuation, accented characters, case sensitivity
學(xué)會(huì)使用下劃線
- 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