What is bar? - Definition from WhatIs.com
Part of the Programming glossary:

In programming, bar is a metasyntactic variable that is used to temporarily represent a function . Other examples include (but are by no means limited to) ack, baz, blarg, wibble, foo , fum, and qux. Metasyntactic variables are sometimes used in developing a conceptual version of a program or examples of programming code written for illustrative purposes.

Any filename beginning with a metasyntactic variable denotes a scratch file. This means the file can be deleted at any time without affecting the program.

When two or more metasyntactic variables are needed, bar is often paired with foo as a result of the fact that foo is phonetically the first part of the otherwise unrelated acronym, FUBAR . In other words, foo (which has its own history; see Smokey Stover) gave rise to the later use of bar as a metasyntactic variable because of its phonetic association with the well-known acronym.

Sometimes the terms Base Address Register and Buffer Address Register are shortened to the acronym bar or BAR.

In physics, the bar is a unit of pressure equal to one million (10 6 ) dynes, equivalent to 10 newtons, per square centimeter. This is approximately the pressure exerted by Earth's atmosphere at sea level.

The word bar, in English, has numerous plain-usage definitions that can be found in any dictionary.

Also see foo and FUBAR .

This was last updated in September 2005
Contributor(s): Alison Gudgeon
Posted by: Margaret Rouse

Related Terms

Definitions

  • use case diagram (UML use case diagram)

    - A use case is a methodology used in system analysis to identify, clarify, and organize system requirements; a use case diagram is a graphic depiction of the interactions among the elements of a sys... (WhatIs.com)

  • IFrame (Inline Frame)

    - The IFrame HTML element is often used to insert content from another source, such as an advertisement, into a Web page. Although an IFrame behaves like an inline image, it can be configured with it... (WhatIs.com)

  • living documentation

    - Living documentation is a dynamic method of system documentation that provides information that is current, accurate and easy to understand. (SearchSoftwareQuality.com)

Glossaries

  • Programming

    - Terms related to software programming, including definitions about programming languages and words and phrases about software design, coding, testing and debugging.

  • Internet applications

    - This WhatIs.com glossary contains terms related to Internet applications, including definitions about Software as a Service (SaaS) delivery models and words and phrases about web sites, e-commerce ...

Ask a Question. Find an Answer.Powered by ITKnowledgeExchange.com

Ask An IT Question

Get answers from your peers on your most technical challenges

Ask Question
  • How to display events on Outlook To-Do bar

    Hi, In Outlook 2007 the To-Do Bar is used to display the item which you need to remember and act on today, even you can add e-mail item to the To-Do Bar several ways: ·    &nb...

  • Probable Hack on PC

    It is a very good possibility that the site is either a phony website or it has been compromised.  I would stay away from sites that have the asian kanji on it, especially with the way North K...

  • CloudAVO on my desktop won't delete!

    Almost sounds like malware.  Each time you delete it and re-start your system, it will re-write it to your desktop.  You will either need to get an anti-virus program, McAfee, Symantec, a...

Tech TalkComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.