Page 1 of 1

Foobar

Posted: Sat Aug 20, 2005 12:12 pm
by Chris Corbyn
What's your interpretation of foobar (or foo and bar)? There's plenty out there that shows contradicting view's on it's origin. Do you use foo and bar in psuedo code? Do you use something else? - what and why?

*d11wtq is enjoying a few beers and feeling philosophical

(The weirder the better)

Posted: Sat Aug 20, 2005 12:24 pm
by feyd
I use foo, bar, bif, baf, buf. Most know the basic origin of foobar: fubar.. I know we've actually discussed this before:

foo bar
The meaning of "foo"
WHAT THE HELL IS A $FOOOOO[bar]

Posted: Sat Aug 20, 2005 2:12 pm
by nielsene
As you've probably noticed in my posts, I use them all the time in example code. I'll never use the metasyntatic variables in real code, however. When you need a quick variable/class name to illustrate a point and the actual name doesn't matter, they're perfect. I stick with the canonical "foo", "bar", "baz","quz","quuz". It similar to "Hello World" or "Hi Mom!" that a lot of people use for an arbitary string.