Category: 

What Is Foo Bar Baz?

Article Details
  • Written By: R. Kayne
  • Edited By: O. Wallace
  • Last Modified Date: 27 November 2016
  • Copyright Protected:
    2003-2016
    Conjecture Corporation
  • Print this Article
Free Widgets for your Site/Blog
The Argentinian resort town of Epecuén was submerged by flooding for years; it is now populated by one elderly man.  more...

December 5 ,  1933 :  Prohibition ended in the US.  more...

Foo bar baz are placeholder names used in computer programming to fill in for unknown, flexible, or as-yet undecided variables, including events or processes. For example, when building code, one process might call up another, stated in computer jargon as “foo calls bar.”

While foo bar baz might sound alien, most people use placeholder names all the time. Thingamajig, whatshisface, Jane Doe, John Q. Public, doodad and gizmo are all placeholder names. Foo bar baz falls into a special category of placeholder names known as metasyntactic variables, specific to programming syntax and algorithms.

Foo is probably most recognized by the average computer user. Foo might appear alone, or together with bar, as in, “Create a top-level domain like foobar.com.” Baz, when it appears, typically follows foo and bar. With the popularity of computers, this expression has leaked into mainstream vocabulary as hip slang.

Foo bar baz flourished without explanation as to where, exactly, the terms came from. The quirky world of programming has its own style and brand of humor, sometimes popularizing arcane references from various sources that might be surprisingly mainstream, if not obvious. To wit, on April Fools Day 2001, Reference For Comments (RFC) 3092 was published, possibly revealing the etymology of foo.

Ad

Though foo cannot be traced to a single source, RFC 3092 points to several references to foo as a nonsensical word seen in comic strips and cartoons circa 1930-1952. In an episode of Warner Brothers’ precursor to Daffy Duck, RFC 3092 states Daffy Doc hoists a sign that reads, “SILENCE IS FOO!” In addition, Walt Kelly’s Pogo strips are mentioned, and Bill Holman’s Smokey Stover comics. Fireman Smokey Stover drove a Foomobile, uttering such lines as “Where there’s foo there’s fire!” Writer Holman purportedly saw the word stamped on the underside of a figurine from China, where “fu/foo” sometimes translates to happiness.

While “foo” predates the 1940s, the foobar portion is similar to World War IIs, fubar, an acronym for “F---ed Up Beyond All Recognition.” Most inquiries into foobar’s origins point to this reference as being at least partially responsible for foobar.

Foo bar baz is the technically correct order for these metasyntactic variables, however, one might see placeholders like “foobaz” or “barbaz.” Foobar is also used as slang for something that makes no sense or is ridiculous. For the most part, however, finding the expression written as such in your Internet wanderings is not nearly as common as finding foo or foobar.

Ad

You might also Like

Recommended

Discuss this Article

tanner182
Post 3

@ElbowTickle - I just use foo bar baz. I number them though, like "foo1" and "baz9" so that I can keep them separate. Like a lot of the program languages I use, Python ends up with tons of naming and numbering.

I do a lot of CSS too and there are lots of foo bar baz names in there. Once you have a couple dozen tags going on, it's hard to keep everything straight. So I have things like "foo_button" and "foo_bar_box" all numbered in the style sheet.

It's a good thing no one ever sees the code -- they wouldn't be able to understand it!

ElbowTickle
Post 2

I have used foo bar baz and lots of other random little words when labeling things. Sometimes, I will just name them "Bob1" or "Jane0" -- since people names are easy to remember.

This reminds me of a making of featurette I was watching for "Star Trek: Enterprise." The set designers had a little bit of fun while making the engine room and tech panels.

Everything is number on the ship, but there are always little labels underneath that say something. The most common once is a placeholder called acronym "GNDN." It's all over the place and everyone was curious about what it meant.

The set designers finally admitted that it meant "Goes Nowhere, Does Nothing" since all of the panels had no other function than to look good.

Post your comments

Post Anonymously

Login

username
password
forgot password?

Register

username
password
confirm
email