File Names Using "_" To Connect Words?

Keebler Elf

The Original Elf
Aug 31, 2001
14,847
508
113
The Keebler Factory
Why? I thought I once read something about a connected string of characters being more secure/stable for (I guess for data transfer), but I can't seem to find anything to confirm.

Is_there_a_particular_reason_people_do_this with their files or is it just habit (maybe from old versions of Windows?)?
 
Yes, it is for older versions as well as some systems.

In the old time filenames where not longer than 8 characters - and did not allow spaces. Then there were longer names but still no spaces...
Now you can go up to 256 char with spaces and some signs, om most new Operating Systems.
But still, some systems don't handle spaces yet, as well as email addresses and urls.

You can nowadays use the underscore to sort directories in a folder. Let's say you want to have a directory at the first rank, you can rename it with an underscore at the beginning of it...

Wiki says that it was used with typewriters to underline words; and now can be used to draw lines for user input on forms.
 
So there's no reason to use it anymore unless you're worried about compatibility with old systems, correct?
 
In the old days, it was important to design programming languages and command interpreters, like the DOS prompt, in a simple manner. It turns out that banning spaces from filenames and variable names significantly simplifies a programming language. This is why programming types go on about whether their language is LALR1 or not.

In these days of graphical user interfaces, like Windows, it doesn't matter much any more. However, if you use the Windows XP command prompt, or do much programming, or use Linux, then filenames without spaces are still handy. The people you see using underscores in file names are probably either programmers, or long time computer users. Old habits die hard.

A large fraction of Windows native file names are still 8.3 characters with no spaces. The Windows XP installer, under certain conditions, can't support anything other than 8.3 character file names. Those DOS limits aren't dead yet.