Почему во многих примерах функции называют foo? Скорее всего слова foo, bar и baz родились в комиксе Smokey Stover and Pogo в конце 30-х годов 20-го века (как правильно заметил @AnT ) и, благодаря своей популярности, стали использоваться технарями из MIT От автора комикса: What’s Foo? My uncle found
history - What is the origin of foo and bar? - Stack Overflow Foo and bar were also commonly used as file extensions Since the text editors of the day operated on an input file and produced an output file, it was common to edit from a foo file to a bar file, and back again