Meaning of foo, bar, baz, etc

北城余情 提交于 2019-12-19 19:58:56

问题


I've always wanted to know what the foo, bar, baz, etc... names mean.

Several times I've found these terms in scientific articles. Furthermore this terminology in some way serves as a standard for other exemplifications.

Does anyone know where these terms come from, and how to use them properly?


回答1:


While this question borders on being outside the scope of Stack Overflow, I highly recommend the Wikipedia article on the matter:

The History of Foobar

To give a quick preview:

The word foo originated as a nonsense word from the 1930s, the military term FUBAR emerged in the 1940s... The term foo fighter was used by Allied aircraft pilots in World War II to describe various UFOs or mysterious aerial phenomena. The first known use of the terms in print in a programming context appears in a 1965 edition of MIT's Tech Engineering News.



来源:https://stackoverflow.com/questions/34212049/meaning-of-foo-bar-baz-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!