Democratic Underground Latest Greatest Lobby Journals Search Options Help Login
Google

Computer geek query: Why did they invent _ (underscore) ?

Printer-friendly format Printer-friendly format
Printer-friendly format Email this thread to a friend
Printer-friendly format Bookmark this thread
This topic is archived.
Home » Discuss » Archives » General Discussion (Through 2005) Donate to DU
 
steve2470 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:29 PM
Original message
Computer geek query: Why did they invent _ (underscore) ?
A burning issue that has disrupted my sleep for nine years now.

:-)
Printer Friendly | Permalink |  | Top
ironman202 Donating Member (608 posts) Send PM | Profile | Ignore Fri Aug-19-05 02:30 PM
Response to Original message
1. it was the lawyers...
it's a safe bet...besides, who will naysay blaming the lawyers? except the lawyers...
Printer Friendly | Permalink |  | Top
 
Blue_In_AK Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 06:15 PM
Response to Reply #1
19. [Smile] probably so...
Back before computers and word processors, we legal types had to underline case names because we didn't have italics on regular typewriters.
Printer Friendly | Permalink |  | Top
 
King Coal Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:31 PM
Response to Original message
2. As a substitute for the minus sign.
Printer Friendly | Permalink |  | Top
 
0rganism Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:33 PM
Response to Original message
3. Why is this a computer geek query?
Underscore keys have been around since mechanical typewriters, used then for underlining among other things. (i.e., you type in "Book Title", then backspace the carriage to the B and type in underscores to get "Book Title")
Printer Friendly | Permalink |  | Top
 
hnsez Donating Member (430 posts) Send PM | Profile | Ignore Fri Aug-19-05 02:34 PM
Response to Original message
4. It is older than the computer
http://en.wikipedia.org/wiki/Underscore

Prior to the advent of word processing, using the underscore character was the only method of underlining words. To produce an underlined word, the word was typed, the typewriter carriage was then moved back to the beginning of the word and the word was overtyped with the underscore character.
Printer Friendly | Permalink |  | Top
 
steve2470 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:36 PM
Response to Reply #4
5. Ah, thank all of you !!!! nt
Printer Friendly | Permalink |  | Top
 
Robert Oak Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:36 PM
Response to Original message
6. learn to use google, no offense
http://www.absoluteastronomy.com/encyclopedia/u/un/underscore.htm

the riddle solved by another.

He doesn't mention that underscores are also useful to concatenate
long string names. White space is a special ascii character and many scripts ignore white space, you would have to write a special parser to bypass the compiler rules, so variables names won't work like
this is a variable
you have to say this_is_a_variable for the name to be considered one
word.
Printer Friendly | Permalink |  | Top
 
steve2470 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:48 PM
Response to Reply #6
13. I understand why you said that, but...
I'm actually one of the better people at using search engines. I usually do use Google when I have a difficult or boring topic to research. This is a *whimsical* post and as such provided, I hope, a few seconds of entertainment to a few folks. If no one had replied (which could have easily happened), I would have gone off and used Google. Also, sometimes I get better answers using the collected intellect here and sometimes others actually learn something useful. This was a whimsical post, so I'm sure educational value was nil here.
Printer Friendly | Permalink |  | Top
 
Robert Oak Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 05:59 PM
Response to Reply #13
16. sorry
didn't realize the post was for "social lubricant". :)
Printer Friendly | Permalink |  | Top
 
CornField Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 06:02 PM
Response to Reply #16
17. "social lubricant"
Ewwww... now I feel all dirty.
Printer Friendly | Permalink |  | Top
 
donco6 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:37 PM
Response to Original message
7. Goes all the way back to early typesetting.
Expressing language with inflection was always a problem with printed words. Alternate typefaces were terribly expensive, and often weren't compatible with the existing press plates. So they invented the underscore to add emphasis in an inexpensive way.
Printer Friendly | Permalink |  | Top
 
steve2470 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:37 PM
Response to Original message
8. The below is REALLY what I wanted to know:
It is also often used instead of a space in computer operating systems, file names, and in World Wide Web URLs.

Some computer applications will automatically underline text surrounded by underscores: _underlined_ will render underlined. It is also conventionally used in this fashion on Usenet, an ASCII-only medium, to indicate underlining.\


from the wikipedia article about underscore.
Printer Friendly | Permalink |  | Top
 
hnsez Donating Member (430 posts) Send PM | Profile | Ignore Fri Aug-19-05 03:33 PM
Response to Reply #8
15. wiki pwns
Printer Friendly | Permalink |  | Top
 
Tesha Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:38 PM
Response to Original message
9. And, of course...
Later, when programming languages evolved to the point where you could
name things with more than five or six characters but the names still
had to be "one word", computer programmers started using the underscore
as a sort of "virtual space", as in:

o This_is_a_valid_variable_name

o And_so_is_this

o Cause_theyre_all_one_word

Names of this sort are a lot easier to read than the alternatives:

o thisisanamewithoutspaces
o ThisIsAnotherNameWithoutSpaces

Tesha
Printer Friendly | Permalink |  | Top
 
steve2470 Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:39 PM
Response to Reply #9
10. Thanks ! nt
Printer Friendly | Permalink |  | Top
 
Alpharetta Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 06:09 PM
Response to Reply #9
18. ah, the memories.
Reminds me of why I'm so glad to be out of software.

Ever sat in meetings where naming standards for variables was discussed? Holy cow. Just shoot me.
Printer Friendly | Permalink |  | Top
 
patdem Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:42 PM
Response to Original message
11. Geeks did not 'invent' it they use it for a space when a space is not
allowed. It is just an underline..that was invented even before typewriters...you know for emphasis...the underline was before bold and italics, even.
Printer Friendly | Permalink |  | Top
 
thereismore Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 03:01 PM
Response to Reply #11
14. that_is_the_truth
Printer Friendly | Permalink |  | Top
 
yodermon Donating Member (1000+ posts) Send PM | Profile | Ignore Fri Aug-19-05 02:42 PM
Response to Original message
12. I think it was already on typewriters
You could use it to underline stuff by moving the carriage back & typing over other letters.

I think.
Printer Friendly | Permalink |  | Top
 
DU AdBot (1000+ posts) Click to send private message to this author Click to view 
this author's profile Click to add 
this author to your buddy list Click to add 
this author to your Ignore list Tue Apr 23rd 2024, 07:23 PM
Response to Original message
Advertisements [?]
 Top

Home » Discuss » Archives » General Discussion (Through 2005) Donate to DU

Powered by DCForum+ Version 1.1 Copyright 1997-2002 DCScripts.com
Software has been extensively modified by the DU administrators


Important Notices: By participating on this discussion board, visitors agree to abide by the rules outlined on our Rules page. Messages posted on the Democratic Underground Discussion Forums are the opinions of the individuals who post them, and do not necessarily represent the opinions of Democratic Underground, LLC.

Home  |  Discussion Forums  |  Journals |  Store  |  Donate

About DU  |  Contact Us  |  Privacy Policy

Got a message for Democratic Underground? Click here to send us a message.

© 2001 - 2011 Democratic Underground, LLC