4 ms·
I've never been a fan of foo and bar as example names. Particularly in code examples, I can never keep them straight because the names are meaningless. Anyway,
by funkah 15y ago
I've never been a fan of foo and bar as example names. Particularly in code examples, I can never keep them straight because the names are meaningless.
Anyway, we already have example.com for this purpose.
- kmort 15y agoTo be fair, their meaningless is their value. Using "real world" names may distract from the logic being discussed or unreasonably suggest that the logic may fit only a particular scenario. http://en.wikipedia.org/wiki/Metasyntactic_variable http://en.wikipedia.org/wiki/Metasyntactic_variable
- 18pfsmt 15y agoPerhaps reading RFC 3092 - Etymology of "Foo"[1] might be helpful. Personally, I was familiar with the acronym FUBAR first, so it comes as natural to me as most mainstream, American acronyms. [1]http://www.faqs.org/rfcs/rfc3092.html http://www.faqs.org/rfcs/rfc3092.html