Is it a good idea to use double dots or double minus signs as the delimiters? I'm trying to find a good naming convention for experimental scientific data. For example:
- To assure compatibility across platforms, the only suitable characters are
.and their combinations;
- None of them can be used on their own in my case:
_is reserved for the spaces; due to case-sensitive chemical formulas I cannot use camelCase.
-is often a part of internal lab codes, plus it's being used as a replacement for a colon
:in time (modified ISO 8601 notation) and ratios;
.is a decimal mark.
- Among their combinations the most popular, it seems, is
_-_. However, this is 3 characters and the filenames are already pretty lengthy (as one can tell from the examples), so I'd like to stick with two characters if possible.
- Visually I find it's hard to quickly tell the difference between
..are quite distinguishable to me.
- I haven't included comma
,(as it has been rightfully suggested in the comments, this is also a viable character to consider) as I think it's easy to confuse it with a single dot
., which is already primarily reserved for the numerical values with a decimal point.
According to several posts across SE network, e.g.
- Are periods (“.”) valid characters in file or folder names?
- Is it bad practice for folder name to contain dot (.)? How about file name with multiple dots?
- Should file names contain multiple periods?
I would assume both
.. are totally acceptable, and I'm thinking of finally choosing
... However, I'm not certain, especially regarding how regular expressions or python scripts can handle these files and folders (I have very little experience with both, but I'm learning).
Disregarding the behavior of specialized software, would you say these delimiters are generally safe for common file systems and scripting languages?