Forwarded from memory heap (Artyom "avp" Poptsov)
История о том, откуда у программистов взялись слова
https://softwareengineering.stackexchange.com/questions/69788/what-is-the-history-of-the-use-of-foo-and-bar-in-source-code-examples
Часто эти слова встречаются в примерах, как "заглушки" для "нормальных" имён:
#unix
foo, bar и foobar:https://softwareengineering.stackexchange.com/questions/69788/what-is-the-history-of-the-use-of-foo-and-bar-in-source-code-examples
Часто эти слова встречаются в примерах, как "заглушки" для "нормальных" имён:
void foo(char* bar) {
printf("%s", bar);
}#unix
Software Engineering Stack Exchange
What is the history of the use of "foo" and "bar" in source code examples?
Why do many code examples, especially tutorials, use the names "Foo" and "Bar" so often? It is almost a standard.
For example:
void foo(char* bar) {
printf("%s", bar);
}
For example:
void foo(char* bar) {
printf("%s", bar);
}