Meaning of Foo and bar in programming

Source: Internet
Author: User
Tags ming

1 Preface

In many foreign computer books and some of the third open source software demo often use two English words foo,bar. What the hell does that mean? From the IT life of the cock Silk circle simple These two words to now I still do not know the true meaning of these two words, today it is necessary to check the summary.

2 explanation on Wikipedia

Original:

The terms foobar, Foo, bar, Baz and Qux are sometimes, used as placeholder names (also referred to as metasyntactic variabl ES) in computer programming or computer-related documentation. [1] They have been used to name entities such as variables, functions, and commands whose purpose-is unimportant and serve Only to demonstrate a concept. The words themselves have no meaning in this usage. Foobar is sometimes used alone; Foo, bar, and Baz are sometimes used in, when multiple entities.

Translation:

The term foobar, Foo, bar, Baz, and qux are often used as placeholders in computer programming or computer-related documents. When variables, functions, or commands themselves are less important, foobar, Foo,bar, Baz, and Qux are used to act as names of these entities, only to illustrate a concept, an idea. The terms themselves are of no use to the scene in which they are used. Foobar are often used alone, and when multiple entities are needed, Foo,bar, and Baz are often used sequentially.

This column more highlights: http://www.bianceng.cnhttp://www.bianceng.cn/Programming/project/

300 degrees of interpretation on the encyclopedia

Bar is the abbreviation of beyond all recognition, the popular point is not recognizable, the meaning of a mess

Foo is a variant of Fu, Fu is the abbreviation of English idiom fuck-up, also is the meaning of a mess

Baidu Encyclopedia address Foobar interpretation address

Http://baike.baidu.com/link?url=HtHnyAqLEsM9cV0dCPalfFE5jI6GCV-H3xXbaulU6nhW7ccfKQy756KSn1z6OV0UW3Dz_KNSHim0u0ENS8RVZq

4 more popular explanations in line with national conditions

In the programming of Foo and bar is our childhood writing in the text of Xiao Ming and Xiao Hong. When writing a text, of course, the most important plot, take time to think of the role of the name too much trouble, just call Xiao Ming Xiao Red good.

Cnblogs Soul Desun

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.