Foobar
Template:Short description Script error: No such module "Distinguish". Script error: No such module "redirect hatnote".
Template:Use dmy dates The terms foobar,Template:Efn foo, bar, baz, quux,Template:Efn and others are used as metasyntactic variables in computer programming or computer-related documentation.[1][2] They have been used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept.
History and etymology
It is possible that foobar is a playful allusion to the World War II-era military slang FUBAR (fucked up beyond all recognition).[3]
According to a RFC from the Internet Engineering Task Force, the word FOO originated as a nonsense word with its earliest documented use in the 1930s comic Smokey Stover by Bill Holman.[4] Holman states that he used the word due to having seen it on the bottom of a jade Chinese figurine in San Francisco Chinatown, purportedly signifying "good luck".[5] If true, this is presumably related to the Chinese word fu ("Script error: No such module "Lang".", sometimes transliterated foo, as in foo dog), which can mean happiness or blessing.[6]
The first known use of the terms in print in a programming context appears in a 1965 edition of MIT's Tech Engineering News.[7] The use of foo in a programming context is generally credited to the Tech Model Railroad Club (TMRC) of MIT from Template:Circa.[2] In the complex model system, there were scram switches located at multiple places around the room that could be thrown if something undesirable was about to occur, such as a train moving at full power towards an obstruction. Another feature of the system was a digital clock on the dispatch board. When someone hit a scram switch, the clock stopped and the display was replaced with the word "FOO"; at TMRC the scram switches are, therefore, called "Foo switches". Because of this, an entry in the 1959 Dictionary of the TMRC Language went something like this: "FOO: The first syllable of the misquoted sacred chant phrase 'foo mane padme hum.' Our first obligation is to keep the foo counters turning."[8] One bookTemplate:Which describing the MIT train room describes two buttons by the door labeled "foo" and "bar". These were general-purpose buttons and were often repurposed for whatever fun idea the MIT hackers had at the time, hence the adoption of foo and bar as general-purpose variable names. An entry in the Abridged Dictionary of the TMRC Language states:[9]
<templatestyles src="Template:Blockquote/styles.css" />
Multiflush: stop-all-trains-button. Next thing to the red door button. Also called FOO. Displays "FOO" on the clock when used.
Script error: No such module "Check for unknown parameters".
Foobar was used as a variable name in the Fortran code of Colossal Cave Adventure (1977 Crowther and Woods version). The variable FOOBAR was used to contain the player's progress in saying the magic phrase "Fee Fie Foe Foo", a phrase from an historical quatrain in the classic English fairy tale Jack and the Beanstalk. Intel also used the term foo in their programming documentation in 1978.[10]
Examples in culture
- Foo Camp is an annual hacker convention.
- BarCamp, an international network of user-generated conferences.
- During the United States v. Microsoft Corp. trial, evidence was presented that Microsoft had tried to use the Web Services Interoperability organization (WS-I) as a means to stifle competition, including e-mails in which top executives including Bill Gates and Steve Ballmer referred to the WS-I using the codename "foo".[11]
- foobar2000 is an audio player.
See also
Script error: No such module "Portal".
- Alice and Bob
- Foo fighter
- Foo was here
- Fu (character)
- Lorem ipsum, similar placeholder text used outside programming
- xyzzy
- Category:Variable (computer science)
Notes
References
External links
- Google developer documentation style guide word list
- The Jargon File entry on "foobar", catb.org
- Template:IETF RFC – FTP Operation Over Big Address Records (FOOBAR)
- ↑ Script error: No such module "citation/CS1".
- ↑ a b Template:IETF RFC - Etymology of "Foo"
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1".
- ↑ Mieke Matthyssen, "Chinese happiness: A proverbial approach to popular philosophies of life", p. 190, ch. 9 in, Gerda Wielander, Derek Hird (eds), Chinese Discourses on Happiness, Hong Kong University Press, 2018 Template:ISBN.
- ↑ Script error: No such module "citation/CS1".
- ↑ Script error: No such module "citation/CS1"., computer-dictionary-online.org
- ↑ Script error: No such module "citation/CS1".
- ↑ Cite error: Invalid
<ref>tag; no text was provided for refs namedIntel_1978_MSC86-OI - ↑ Script error: No such module "citation/CS1".