Lets Make A New Post And See If Things Are Broken

a subhead too, why not
|
August 17, 2021 10:29 a.m.

The etymology of foobar could be derived from the World War II-era military slang FUBAR, which was bowdlerised to foobar.[2] The word foo on its own was used earlier. Between about 1930 and 1952 it appeared in the comic Smokey Stover by Bill Holman, who stated 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”.[3] If true, this is related to the Chinese word fu (“福”, sometimes transliterated foo, as in foo dog), which can mean happiness or blessing.[2]

The first known use of the terms in print in a programming context appears in a 1965 edition of MIT’s Tech Engineering News.[4] Foobar may have come about as a result of the pre-existing “Foo” being conjoined with “bar”, an addition borrowed from the military’s FUBAR. The use of foo in a programming context is generally credited to the Tech Model Railroad Club (TMRC) of MIT from circa 1960.[1] 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 going full-bore at 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.”[5] One book[which?] describing the MIT train room describes two buttons by the door labeled “foo” and “bar”. These were general purpose buttons and were often re-purposed 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:[6]

Latest News
Comments are now Members-Only

Non-members are still able to read comments, but will no longer be able to participate. To join the conversation, sign up now and get:

30% Off Annual Prime Membership

TPM strives to build as inclusive a community as financially possible. We offer FREE memberships to those experiencing financial hardship and FREE memberships for students.

View all options
Comments
Masthead Masthead
Founder & Editor-in-Chief:
Executive Editor:
Managing Editor:
Associate Editor:
Investigations Desk:
Reporters:
Newswriters:
Audience Development Editor:
Editor at Large:
General Counsel:
Publisher:
Head of Product:
Director of Technology:
Associate Publisher:
Front End Developer:
Senior Designer: