Definition - What does Baz mean?

In computer programming, baz is one of several common placeholder names for variables. Baz comes to the IT world along with the more common placeholders foo and bar. These names are simple ways to refer to universal ideas about the use of variables in programming.

Techopedia explains Baz

The use of foo as a nonsense word dates back to the 1930s, with the use of foo in programming developing in the early days of computing. Eventually, the word bar was added as a suffix to form the word foobar or FUBAR which became a commonly used military slang. In programming, engineers or others will use the word foo for an initial variable, and will often use the word bar for a second variable. Within this construct, baz is designated as an alternate for bar, or as a name for a third variable.

For instance, when a programmer writes a simple program, he or she may need an initial variable to describe the program's initial state, and might name that variable foo. When he or she needs a second variable, for example, to mirror or contrast with the state of the initial variable, or to store a user input, he or she might name that variable bar and use the placeholder name baz for a third variable as needed, or, might name the second variable baz instead of bar for capricious preference.

Share this:

Connect with us

Email Newsletter

Join thousands of others with our weekly newsletter

The 4th Era of IT Infrastructure: Superconverged Systems
The 4th Era of IT Infrastructure: Superconverged Systems:
Learn the benefits and limitations of the 3 generations of IT infrastructure – siloed, converged and hyperconverged – and discover how the 4th...
Approaches and Benefits of Network Virtualization
Approaches and Benefits of Network Virtualization:
Businesses today aspire to achieve a software-defined datacenter (SDDC) to enhance business agility and reduce operational complexity. However, the...
Free E-Book: Public Cloud Guide
Free E-Book: Public Cloud Guide:
This white paper is for leaders of Operations, Engineering, or Infrastructure teams who are creating or executing an IT roadmap.
Free Tool: Virtual Health Monitor
Free Tool: Virtual Health Monitor:
Virtual Health Monitor is a free virtualization monitoring and reporting tool for VMware, Hyper-V, RHEV, and XenServer environments.
Free 30 Day Trial – Turbonomic
Free 30 Day Trial – Turbonomic:
Turbonomic delivers an autonomic platform where virtual and cloud environments self-manage in real-time to assure application performance.