foo
   HOME

TheInfoList



OR:

The terms foobar (), foo, bar, baz, and others are used as metasyntactic variables and placeholder names in computer programming or computer-related documentation. - Etymology of "Foo" 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)''. According to an Internet Engineering Task Force
RFC RFC may refer to: Computing * Request for Comments, a memorandum on Internet standards * Request for change, change management * Remote Function Call, in SAP computer systems * Rhye's and Fall of Civilization, a modification for Sid Meier's Civ ...
, the word FOO originated as a nonsense word with its earliest documented use in the 1930s comic ''
Smokey Stover ''Smokey Stover'' is an American comic strip written and drawn by cartoonist Bill Holman from March 10, 1935, until he retired in 1972 and distributed through the ''Chicago Tribune''. It features the misadventures of the titular fireman and ha ...
'' by Bill Holman. 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". If true, this is presumably related to the Chinese word '' fu'' ("", sometimes transliterated ''foo'', as in '' foo dog''), which can mean ''happiness'' or ''blessing''. The first known use of the terms in print in a programming context appears in a 1965 edition of MIT's ''
Tech Engineering News ''Tech Engineering News'' was a student-run publication at the Massachusetts Institute of Technology from 1920 to 1976. It started as an advertising supplement for '' The Tech'' in 1920, and its last issue was Volume 60 No. 1. In 1952, it publishe ...
''. The use of ''foo'' in a programming context is generally credited to the Tech Model Railroad Club (TMRC) of MIT from circa 1960. In the complex model system, there were scram switches located at numerous 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." One book 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: ''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". Intel also used the term ''foo'' in their programming documentation in 1978.


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. ''United States v. Microsoft Corporation'', 253 F.3d 34 (D.C. Cir. 2001), was a landmark American antitrust law case at the United States Court of Appeals for the District of Columbia Circuit. The U.S. government accused Microsoft of illegally ...
'' trial, some 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 referred to the WS-I using the codename "foo". *
Foobar2000 foobar2000 (often abbreviated as fb2k or f2k) is a freeware audio player for Microsoft Windows, iOS and Android developed by Peter Pawłowski. It has a modular design, which provides user flexibility in configuration and customization. Stan ...
is an audio player. * Google uses a web tool called "foobar" to recruit new employees. * The Foo Bar is a pub in the Leiden University's faculty of Mathematics and Computer Science.


See also

* Alice and Bob *
Foo fighter The term ''foo fighter'' was used by Allied aircraft pilots during World War II to describe various UFOs or mysterious aerial phenomena seen in the skies over both the European and Pacific theaters of operations. Though ''foo fighter'' initially ...
* Foo was here * xyzzy * :Variable (computer science) * Fu (character)


References


External links


The Jargon File entry on "foobar"
catb.org * {{IETF RFC, 1639 – FTP Operation Over Big Address Records (FOOBAR) Placeholder names Computer programming folklore Articles with example C code