Naming things (2015) [pdf]
www2.stat.duke.edu
Naming things (2015) [pdf]
1–10 of 60 posts
Re: Naming things (2015) [pdf]
#2[deleted]
Re: Naming things (2015) [pdf]
#3Nice rules :) I especially like the use of underline-delimited metadata in filenames, saved me on a huge research deadline once.
Re: Naming things (2015) [pdf]
#4For some reason I want to avoid names beginning with numbers. All my filenames can be used as an identifier (except the extension part).
i.e. [a-zA-Z][0-9a-zA-Z_]+\.[a-z0-9]+
Re: Naming things (2015) [pdf]
#5It's a nice set of guidelines, but why the snail on page 15?
Re: Naming things (2015) [pdf]
#6It's a nice set of guidelines, but why the snail on page 15?
I think it's to embrace the slug: https://en.wikipedia.org/wiki/Semantic_URL#Slug
Re: Naming things (2015) [pdf]
#7My only real concern is with left-padding numbers with 0s when you don't know in advance how big the numbers are going to get. Do you pad to 2 or 3 digits or...
Re: Naming things (2015) [pdf]
#8Why left pad numbers if you could simply use better tools that properly sort numbers (instead of using ASCII order which doesn't even make sense for ordering purposes). For instance, use `ls -v` instead of `ls` (possibly as an alias).
Re: Naming things (2015) [pdf]
#9Considered that most of the world uses "little-endian" format for date writing ( https://en.wikipedia.org/wiki/File:Date_format_by_country_(n... ) how comes ISO 8601 was set on "big-endian"?
Not so practical for anything else but file naming IMHO...
Re: Naming things (2015) [pdf]
#10> avoid [...] accented characters
It's certainly good advice and I definitely avoid using non-ASCII characters in filenames in practice. But I can't help thinking that advice like that is why support for Unicode is still buggy in many places.
I see nothing fundamentally wrong with using non-ASCII for filenames (and the slides don't give any reasoning), if only random software wouldn't mangle encodings, sorting order, or plain refuse to accept such filenames.