I really dislike when people use foo and bar. Use something with some meaning imo.
The problem is when foo and bar are used in material aimed at beginning programmers who are still developing that instinct and who haven’t yet got that bit set.
https://en.wikipedia.org/wiki/Foobar
"FoobarNot to be confused with FUBAR or Foobar2000."
It's linked from FUBAR but not under "disambiguation" but "See also".
> It is possible that foobar is a playful allusion to the World War II-era military slang FUBAR (Fucked Up Beyond All Recognition).
https://en.wikipedia.org/wiki/Foobar
Which is certainly how I've always understood it.
(It is useful to illustrate syntax, though!)
The Jargon File, though largely historical and obsolete, is a good place to start: