Possible Duplicate:
What does 'foo' really mean?
I hope it is not the most stupid question ever.
Whenever I read about javascript, I see people use the word FOO.
Where does this word come from?
Foo (pronounced FOO) is a term used by programmers as a placeholder for a value that can change, depending on conditions or on information passed to the program. Foo and other words like it are formally known as metasyntactic variables.
In the world of computer programming, "foo" and "bar" are commonly used as generic examples of the names of files, users, programs, classes, hosts, etc. Thus, you will frequently encounter them in manual (man) pages, syntax descriptions, and other computer documentation.
It just indicates a that it is a symbol instead of a string. In ruby, it is common to use symbols instead of strings. {:foo => value} {'foo' => value} It's basically a short-hand way of expressing a string. It can not contain spaces as you can imagine so symbols usually use underscores.
The terms foobar (/ˈfuːbɑːr/), foo, bar, baz, and others are used as metasyntactic variables and placeholder names in computer programming or computer-related documentation.
http://en.wikipedia.org/wiki/Foobar
https://www.rfc-editor.org/rfc/rfc3092
Google is your best friend.
The origins of the terms are not known with certainty, and several anecdotal theories have been advanced to identify them. Foobar may have derived from the military acronym FUBAR and gained popularity because it is pronounced the same. In this meaning it also can derive from the German word furchtbar, which means awful and terrible.
as per wiki
The terms foobar /ˈfʊːbɑː/, fubar, or foo, bar, baz and qux (alternatively quux) are sometimes used as placeholder names (also referred to as metasyntactic variables) in computer programming or computer-related documentation.[1]
http://en.wikipedia.org/wiki/Foobar
http://catb.org/jargon/html/F/foo.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With