foobar

Using "Foo" and "Bar" in examples

Why do code examples (mostly tutorials) use the names "Foo" and "Bar" so often? It is almost a standard. For example: void foo(char* bar) { printf("%s", bar); } ...

To foo bar, or not to foo bar: that is the question.

This was something originally discussed during a presentation given by Charles Brian Quinn of the Big Nerd Ranch at acts_as_conference. He was discussing what he had learned from instructing a Ruby on Rails Bootcamp to many people both new to programming and new to Rails. One particular slide that stood out was along the lines of never...

When foo and bar is not enough

When you are using placeholder names when programming (not necessary variable names, but labels, mockup names, etc) and foo and bar is not enough, what do you use? I guess baz is rather common as third name, and the lorem ipsum for longer texts. But then what? ...

Metasyntactic variables: do you use something else than "foo", "bar" according to your mother tongue

Hello In english, the variables foo and bar are very often used for simple examples, or for anonymous variables (see these three posts for more on these metasyntactic variables (1), (2), (3)) Usually, I often use titi, toto and huhu and it seems that I am not the only french guy to use them. So, they should be different in german, spa...