This question already has an answer here:
In many program test case or example case, i always see "bar" and "foo", what is the two word represent for and why choose this two words as example?
</div>
This question already has an answer here:
In many program test case or example case, i always see "bar" and "foo", what is the two word represent for and why choose this two words as example?
</div>
Google can answer your question far better than I. From wiki:
The word foo originated as a nonsense word from the 1930s, the military term FUBAR emerged in the 1940s, and the use of foo in a programming context is generally credited to the Tech Model Railroad Club (TMRC) of MIT from circa 1960.[9] However, the precise relationship of these terms is not known with certainty, and several anecdotal theories have been advanced to identify them.
Also, have a look at this question: What is the origin of foo and bar? as well as this one: https://softwareengineering.stackexchange.com/questions/69788/what-is-the-history-of-the-use-of-foo-and-bar-in-source-code-examples