I couldn’t disagree more. The entire point is that the variables are disconnected from the matter at hand. They’re widely recognised as placeholders, single syllable, distinctly pronounced from each other, and have an implied ordering.
This isn't so much of an advantage for "bar" and "baz". Those sound pretty distinct to Americans, now, but "r" -> "z" is a known type of sound change, which implies that for some people they'll sound the same. "R" -> "s" is attested in Latin, presumably because "z" wasn't an option. (Latin fricatives don't have voicing distinctions.)
For an only slightly different current example, the second consonants in "virile" and "vision" are perceived as distinct in American English, but identical in Mandarin Chinese, which is why the sound is spelled as "r" in Hanyu Pinyin and as "j" in Wade-Giles.
I’d find it hard to think of two words easier to pronounce— what do you mean by this?
You detest that someone says "thing" instead of "house" or something?
"...so you take a thing-"
"what thing?"
"It doesn't matter. It might be anything. So you-"
"A car?"
Come on man.
Using foo bar baz qux is lazy when you can easily find countless examples.
> Using foo bar baz qux is lazy when you can easily find countless examples.
Countless examples of what?
Yes to both.
> Countless examples of what?
Anything illustrative. Like libraries/books, cars, whatever. Anything is better than foo/bar
They have absolutely no connection to the matter at hand. Since foo is often used before bar, you would think there is an ordering between the two but there doesn't have to be. They are hard to pronounce and easier to confuse.
Whenever I give an example I use variable names that actually make sense and are related to the example. I'm glad that I have been fortunate to not see "foo" and "bar" anywhere in all of the code I've seen in recent memory.