程序语言(如C/C++)教材中为什么经常使用 foo 和 bar 作为函数或者变量的名字? – 知乎

A “standard list of metasyntactic variables used in syntax examples” often used in the United States is: foo, bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud. The word foo occurs in over 330 RFCs and bar occurs in over 290. Wibble, wobble, wubble and flob are often used in the UK.

Read More 

https://www.zhihu.com/question/19691869