Live data from Hacker News

Naming things (2015) [pdf]

www2.stat.duke.edu

1–10 of 60 posts

Re: Naming things (2015) [pdf]

#4
For 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]

#8
Why 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]

#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.

Post reply on HN