logoalt Hacker News

layer8yesterday at 1:33 PM2 repliesview on HN

Underscore requires pressing Shift, however.

> I don't like the idea of a punctuation prefix as punctuation usually has a specific meaning somewhere and including it as the first character in a filename looks wrong.

So you don’t use dotfiles? ;)


Replies

necovekyesterday at 6:38 PM

On non-English keyboards (Serbian/Croatian/Slovenian, but as they are based on QWERTZ, I imagine German and possibly others too), both "+" and "-" might not require pressing Shift either, and are much better characters than comma.

show 1 reply
ndsipa_pomuyesterday at 1:58 PM

Well dotfiles demonstrate that punctuation can have a special meaning in filenames.

I'm not convinced by "quicker to type" arguments as that's rarely the bottleneck, so I'm perfectly happy with using underscores in filenames and variables. I wouldn't use underscore as the beginning character of a filename unless it had a specific meaning to me (e.g. temporary files), so I'd be more inclined to use a two or three character prefix instead.

show 1 reply