Forbes magazine logo Ranked Best Coding Bootcamps 2023

What is Foo Bar Baz?

Web Development Jargons Explained in 4 Different Ways

TLDR: Foo, Bar, and Baz are used as placeholders when giving examples in programming. It's like placeholder names that refer to objects or people when telling a story. Such as widget or "John Doe". The actual names are irrelevant and do not affect the message being conveyed.


Explain like I only speak in plain English

Foo, bar, and baz are used as placeholders when giving examples in programming. It's like placeholder names that refer to objects or people when telling a story. Such as "widget" or "John Doe". The actual names are irrelevant and do not affect the message being conveyed.

Programmers usually start with foo if only one placeholder name is needed. Then they will use bar, and finally baz. If more are needed, there is qux, quux, quuz, corge, grault, garply, waldo, fred, plugh, xyzzy, and thud.

Explain like I'm a total nerd

In Python, spam, ham, and eggs are used instead. It is heavily influenced by the creator's love for British comedy show Monty Python.

Foo, bar, and baz are generally called metasyntactic variables. It stems from mathematics where algebra letters such as x, y, c, are used in place of numbers.

Foo, bar, baz are more generally referred to as just foo bar. They are probably as legendary as "Hello World!" in computer science.

Explain like I'm an artist

Foo, bar, baz, is like "lorem ipsum" in publishing and graphic design. They are used as placeholder text to demonstrate a programming example where names are not important.

Explain like I already know it

A foo walks into a bar, takes a look around and says: "Hello world!". Hahahahaha. Good one.

We are trusted by

Students and instructors from world-class organizations

Imperial College London
Carnegie Mellon University
City University of Hong Kong
Hack Reactor
Cisco Meraki
University of Oxford
Swift
Bazaarvoice
Waterloo
Uber
AtlanTech
Tumblr
Boston College
Bombardier Aerospace
University of St. Andrews
New York University
Minerva Schools at KGI
Merrill Lynch
Riot Games
JP Morgan
Morgan Stanley
Advanced Placement®
Google
KPMG
The University of Hong Kong
University of Toronto
SCMP
Moat
Zynga
Hello Toby
Deloitte
Goldman Sachs
Yahoo
HSBC
General Assembly
Tesla
McGill University
Microsoft

Join the upcoming Cohort #95

Enroll for November 4th, 2024