Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does FOO stand for? [duplicate]

Tags:

javascript

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?

like image 281
Aladdin Mhemed Avatar asked Apr 08 '12 07:04

Aladdin Mhemed


People also ask

What does Foo stand for?

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.

Why do programmers use foo and bar?

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.

What is Foo in Ruby?

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.

What is foo and bar in Java?

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.


2 Answers

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.

like image 121
The GiG Avatar answered Sep 30 '22 01:09

The GiG


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

like image 32
Akash Yadav Avatar answered Sep 30 '22 01:09

Akash Yadav