2013-01-04 15 views
0

也許這是錯誤的網站,但我很好奇爲什麼在很多不同的語言例子中,他們使用foo作爲函數或方法的名稱?爲什麼在很多示例中的函數被稱爲foo

+1

請參閱http://programmers.stackexchange.com/questions/69788/what-is-the-history-of-the-use-of-foo-and-bar-in-source-code-examples其中的鏈接http://stackoverflow.com/questions/163229/code-examples-foo-bar :) –

+2

選擇一個更好的暱稱。 –

+0

http://dictionary.reference.com/browse/foo – user1824407

回答

2

這可能來自於FUBAR縮寫,它代表F***ed Up Beyond All Repair,並且很快就改編成編程爲foobar,然後foobar(和baz作爲補充)。

真是編程民間傳說。

請參閱有關更多歷史瑣事的維基百科FUBAR

+1

'Recognition'? –

+0

@TheSexiestManinJamaica「FUBAR(F *** ED up beyond all recognition/any repair/all reason)」 – 2013-01-04 15:38:48

相關問題