最近看到了一個(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
