Edit: Thank you guys for your insightful answers!
I use command line a lot. I hate needing to add backslashes before spaces or put quotes around file names. It’s easier to just use underscores.
Spaces are not the end of the world, but very annoying:
On a bash command line, they make it harder to handle a list of files returned by a command as argument to another.
On the command line (lin or win), they require escaping or quoting when used as arguments or script/executable names.
On many programs, if you cut&paste the complete path to the file (for example in a network drive), you can click on the path and it will access the file, but spaces in filenames or directories breaks that (and it’s not bad programming, the program simply can’t guess where the link ends).
When you mention the name of the file in a documentation or message, it may lead to misintepretation, and it’s just fugly:
“You can find more information in the attached document file.pdf”.
What is the name of the file? it can be “the attached document file.pdf”, “attached document file.pdf”, “document file.pdf” or “file.pdf”.
Also when mentioned in a text, the file name may end up split in separated lines or even pages, and will more likely be subject to autocorrect.
When copying the file name in a text, in most environments you can double-click to select the whole name, but it doesn’t work if it has spaces.
Now, if you never ever type or copy/paste a file name, and only ever access files through a graphical interface, then it makes no difference.
But then you start getting to comfy and if anything goes, why not non-ascii chars too? And that opens a different can of troubles.
That depends, if you have the fortune (misfortune?) of using the CAD software Creo/ ProE from PTC then spaces are verboten since they haven’t progressed from the days where the software was written for UNIX.
WelcomeToCamelCaseMyFriend.png
Using
-
is much nicer.Only if you want my respect
never use spaces. never use special characters like
|$&";?*'
. avoid non-ascii. case is preference, i personally usekebab-case
deleted by creator