DEV Community

Discussion on: No More Foo, Bar, and Baz

Collapse
 
alainvanhout profile image
Alain Van Hout • Edited

They are indeed related, and they serve the same purpose as other generic placeholder words (e.g. thingy, stuff, and John Smith): en.m.wikipedia.org/wiki/Foobar and en.m.wikipedia.org/wiki/Metasyntac...

Collapse
 
misterkevin_js profile image
Kevin Rodríguez

Nope, John Doe is used in the context of being the name of a person and that's completely ok, but you can't just use Foo, Bar, Baz to refer to a Method, a Class, or a Functionality, that's just too unclear, it's no different than using 'x' or 'o' to name a variable.

Collapse
 
alainvanhout profile image
Alain Van Hout • Edited

Which is exactly what is done in algebra when 'x' has no meaning except to serve as an example (as is the case for Foo, Bar and Baz).