Why is foo used in examples




















Python programmers supposedly use spam , eggs , ham , instead of foo , etc. There are good uses of foo in SA. I have also seen foo used when the programmer can't think of a meaningful name as a substitute for tmp , say , but I consider that to be a misuse of foo.

Forward Observation Officer. An artillery officer who remained with infantry and tank battalions to set up observation posts in the front lines from which to observe enemy positions and radio the coordinates of targets to the guns further in the rear. It is sometimes combined with bar to make foobar.

Foo is a metasyntactic variable used heavily in computer science to represent concepts abstractly and can be used to represent any part of a Foo is the world of dreams no its not in Obert Skye's Leven Thumps series.

Although it has many original inhabitants, most of its current dwellers are from Reality, and are known as nits.

Representation of fool foolish person , in a Mr. T accent en. It's a metasyntactic variable. The sound of the french fou, like: amour fou [crazy] written in english, would be foo, wouldn't it.

Just fou. A foot without teeth. Among my colleagues, the meaning or perhaps more accurately - the use of the term "foo" has been to serve as a placeholder to represent an example for a name. Today, I avoid using "foo" and prefer using this type of named substitution for a couple of reasons. In my opinion every programmer has his or her own "words" that is used every time you need an arbitrary word when programming. For some people it's the first words from a childs song, for other it's names and for other its something completely different.

Now for the programmer community there are these "words" as well, and these words are 'foo' and 'bar'. The use of this is that if you have to communicate publicly about programming you don't have to say that you would use arbitratry words, you would simply write 'foo' or 'bar' and every programmer knows that this is just arbitrary words.

How are we doing? Please help us improve Stack Overflow. Take our short survey. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. What does 'foo' really mean? Asked 13 years, 2 months ago. Active 2 years, 10 months ago. Social Twitter Facebook. Legal Privacy Policy Terms. Register to vote on and add code examples. Join our developer community to improve your dev skills and code like a boss!

No Good? Here are a few common signatures:. Of all these, only foo and bar are universal and baz nearly so. The compounds foobar and foobaz also enjoy very wide currency. Some jargon terms are also used as metasyntactic names; barf and mumble , for example. See also Commonwealth Hackish for discussion of numerous metasyntactic variables found in Great Britain and the Commonwealth. At MIT but not at Stanford , baz dropped out of use for a while in the s and '80s.

A common recent mutation of this sequence inserts qux before quux.



0コメント

  • 1000 / 1000