http://mail.python.org/pipermail/tutor/2000-March/001266.html
python.org
的Dennis E. Hamilton
解释了原因:
Great question!
I can’t remember when I first saw foo and bar used in examples. It was a
long time ago. I have this sense that it was quite popular around MIT and
maybe even the DEC crowd and in the Multics community. It is typically used
in composing file names in code examples about file processing. There is
also a potential pun, from the days when connections to files had funny
names, like A01, C05, F00 (those are zeroes).
It is a mild joke. There is an old US military acronym, FUBAR (other
military organizations will have their own versions). In the context of
Python it means something like "Friendlied Up Beyond All Recognition". Cf.
RTFM. Once you’ve seen it, it becomes difficult not to use it. The
continued use of it is for the same reason that it was used in the first
place: "Where can I get some easy, meaningless file names to use in an
example?" It’s easier than inventing new names. And it is automatic. And
there is tacit knowledge of it in the community, like recognizing a recuring
character in your favorite series of novels.
I’d be amazed if FOO and BAR are *not* mentioned in the Hackers Dictionary.
I’m grateful that you asked. It reminds us of how much is taken for granted
that, for a neophyte, is not easily distinguished as having material or only
incidental importance. With the wonderful international nature of
computing today, it is an important challenge for those of us who are
already "in the know" to provide clarity and simplicity.
– Dennis
分享到:
相关推荐
foo.bar 谷歌的foo.bar问题 我在foo.bar Google招聘回合期间遇到的问题
一个零配置包,为您提供最新的Javascript,最新建议包括管道运算符foo |> bar ,可选的链接foo?.bar ,null合并foo ?? bar foo ?? bar等等。 快速开始 以下是如何使用最新最出色的Babel提案创建项目的方法: $ ...
编程中常见的Foo,是什么意思?.md
class Bar extends Foo { const BAR = 'foo'; public static function getMyConstant() { return self::BAR; } public static function getParentConstant() { return ...
使用依赖注入的思路是应用程序用到Foo类,Foo类需要Bar类,Bar类需要Bim类,那么先创建Bim类,再创建Bar类并把Bim注入,再创建Foo类,并把Bar类注入,再调用Foo方法,Foo调用Bar方法,接着做些其它工作。这就是控制...
Foo
foo.bar 该存储库包含我通过Google的“秘密”招聘工具foo.bar的旅程。挑战性1级2级3级解决方案切换到solutions/目录,并通过从命令行发出以下命令来运行单元测试: make test
Google的Foobar挑战 Google Foobar是Google的秘密招聘挑战。 名称 水平 资料库链接 世界末日 1级 耗电 2级 为破坏做准备 2级 准备兔子的逃生 3级 燃油喷射完美 3级 世界末日燃料 3级 快来了 4级
使用依赖注入的思路是应用程序用到Foo类,Foo类需要Bar类,Bar类需要Bim类,那么先创建Bim类,再创建Bar类并把Bim注入,再创建Foo类,并把Bar类注入,再调用Foo方法,Foo调用Bar方法,接着做些其它工作。这就是控制...
用于将 foo..bar(...) 符号转换为 foo.bar.bind(foo, ...) 的 Gulp 插件 使用将..语法转换为标准 JavaScript,以便其他插件检查/处理它,主要是 。 安装 npm install --save-dev gulp-dotdot 用 例子.js var ...
点点使用 Nodejs require 钩子自动将 foo..bar() 替换为 foo.bar.bind(foo) dotdot安装一个 Node 加载器钩子来转换每个加载的 JavaScript 文件。 var foo = { n : 101 , print : function ( ) { console . log ( n )...
主要介绍了JavaScript 中定义函数用 var foo = function () {} 和 function foo()区别介绍,需要的朋友可以参考下
Foob
我提交给Google的foo.bar编程挑战的论文如果有兴趣,我可以提供我进行的单元测试,以断言我在编写程序时程序是否正常运行 当前只包括一个级别; 我有时间编写说明后,它将进行更多更新(我认为仅上传解决方案就没有...
一、为什么需要过程间分析 前面的数据流分析学习中,我们接触到的都是过程内 intraprocedural 的分析,在过程内 分析遇到函数调用如何处理的呢? 在过程内分析的情况下,对函数调用的通常的做法是:对方法的调用做最...
linux打印机驱动支持多种HP型号的打印机。 foo2zjs
电脑播放sacd镜像音乐foobar插件
foo_converter.dll
foo2zjs的静态编译与驱动LJ1020的方法1