We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, some of you guys use "foo" as a name for a plain variable or a function. What is the meaning of "foo"?
Have a look here
www.hackersdictionary.com/.../foo.html
It means nothing; it is just used because some name is required, and there is no reason not to use it.
Because it has no meaning, it prevents any problems with people (mis)interpreting what they think it means!
Commonly used in example snippets - where it could equally be 'my_variable', 'fred', or anything else!