Foobar

Foobar is a universal variable understood to represent whatever is being discussed.

It’s usually used in examples that illustrate concepts and ideas in computer science.

For instance, a computer science professor may be discussing different file formats. In this case, he would call the generic-example file foo or foobar, then list the extensions associated with the file formats (e.g. foobar.txt, foobar.gif, foobar.exe, foobar.tar).

When foo or foobar is used, everyone understands that these are just examples, and they don’t really exist.

Programmers and administrators also use foo and foobar in a similar context. Files or program s named with foo or foobar are understood not to be permanent and will be changed or deleted at anytime.

Foo, bar, and the compound foobar were commonly used at MIT, Stanford and the Helsinki University of Technology, Finland. Other generic variables are used other places, but only these three are considered universal.

One last note: hackers never use foobar to mean fubar!

Webopedia Staff
Webopedia Staff
Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.

Top Articles

List of Windows Operating System Versions & History [In Order]

The Windows operating system (Windows OS) refers to a family of operating systems developed by Microsoft Corporation. We look at the history of Windows...

How to Create a Website Shortcut on Your Desktop

Website Shortcut on Your Desktop reviewed by Web Webster   This Webopedia guide will show you how to create a website shortcut on your desktop using...

What are the Five Generations of Computers? (1st to 5th)

Reviewed by Web Webster Each generation of computer has brought significant advances in speed and power to computing tasks. Learn about each of the...

Hotmail [Outlook] Email Accounts

Launched in 1996, Hotmail was one of the first public webmail services that could be accessed from any web browser. At its peak in...

XiaoBa Ransomware

XiaoBa is a type of file-encrypting ransomware that runs on Windows and encodes...

Team Management Software

Team management software is a type of organizational software that supports remote team...

Kaseya Ransomware Attack

The 2021 ransomware cyberattack on U.S.-based software solutions company, Kaseya, is known as...