DEV Community

A Foo walks into a bar and gets bash'd in the baz

Jeff Duke on October 09, 2019

Some time ago, I published a blog post on Closure in JavaScript. In the post, I touched on why I deliberately shied away from the foo bar baz bash ...
Collapse
 
idanarye profile image
Idan Arye • Edited

I think the main point of using nonsensical names is to prevent the pointless dispute that more meaningful placeholders may invite. People will try to argue with you about why your salad doesn't have cucumbers, but no one will be irritated about your baz not having a qux and they may, instead, discuss the actual programming concept you wanted to demonstrate.