What does "foo" and "bar" mean? What's their origin? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What does "foo" and "bar" mean? What's their origin?

I've seen lot of examples with variables and methods named "foo" and "bar" and I understand that they're metasyntactic names commonly used as placeholders. But why specifically those names?

6th Apr 2018, 6:41 PM
Rusty.Metal
1 Answer
+ 4
Check "History and etymology" here: https://en.m.wikipedia.org/wiki/Foobar
6th Apr 2018, 6:45 PM
Damyan Petkov
Damyan Petkov - avatar