We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Linguistics

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is Foo Bar Baz?

By R. Kayne
Updated: May 23, 2024
Views: 31,354
Share

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.

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.

Share
Language & Humanities is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
By tanner182 — On Aug 31, 2011

@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!

By ElbowTickle — On Aug 30, 2011

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.

Share
https://www.languagehumanities.org/what-is-foo-bar-baz.htm
Copy this link
Language & Humanities, in your inbox

Our latest articles, guides, and more, delivered daily.

Language & Humanities, in your inbox

Our latest articles, guides, and more, delivered daily.