It is possible that foobar is a playful allusion to the World War II-era military slang FUBAR. 232535