foo
is used as a place-holder name, usually in example code to signify that the object being named, or the choice of name, is not part of the crux of the example. foo
is often followed by bar
, baz
, and even bundy
, if more than one such name is needed. Wikipedia calls these names Metasyntactic Variables. Python programmers supposedly use spam
, eggs
, ham
, instead of foo
, etc.
There are good uses of foo in SA.
I have also seen foo
used when the programmer can't think of a meaningful name (as a substitute for tmp
, say), but I consider that to be a misuse of foo
.