Yes I would. Infact just about any word in the dictionary would work better than foo, bar and baz because most words have a meaning that will describe the purpose the word is being used to represent. The words egg, ham and apple are nouns, they describe a single item, like something that would be stored in a array. Words that are verbs should be used as fuction names. Descriptive names document your code. When creating names for code that will teach a programming concept, it should be all the more important to use descriptive/self documenting names, but people choose to use meaningless words that sound like klingon babble. There are rare occasions when you want to explain a programming concept without directly dealing with how that concept is implemented, and in those rare cases you would use non-descriptive words to isolate the code from how it would be applied. But as Mario F mentioned, the use of foo, bar, baz has been exagerated to the point where it is always used for every code example.Originally Posted by maxorator