Earlier quoted context omitted.
Why would women in particular object to "fu" and not "foo"?
Is it not clear what “f” and “u” is short for?
What is the history of the use of "foo" and "bar" in source code examples? (2012)
21–30 of 150 posts
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#22Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#23MIT AI Lab back in the 1960s published technical reports containing program code. The military slang 'FUBAR' f'ed up beyond all recognition, was in the student and professor engineering vocabulary. The tradition became to use 'fu' and 'bar' as nominal function names, in same manner as X and Y were nominal variables. Often in the MIT technical reports, one would see 'x = fu(y)' or 'y > bar(z)' and so forth. If you kne…
Why would women in particular object to "fu" and not "foo"?
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#24Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#25In addition to the military-programming history of "foo", there's also a military-programming history for the variable naming convention of "alfa", "bravo", "charlie", "delta", etc. The naming convention is known as the NATO phonetic alphabet: https://en.wikipedia.org/wiki/NATO_phonetic_alphabet
NATO phonetic alphabet is used in all areas where you have to say letters over voice. One character variable names for temp or iterator values are everywhere in programming. But I've never ever encountered one spelled out as a full transcriptions of the NATO phonetic alphabet like alfa, bravo, charlie. Exception is alpha for probability/statistics.
I don't tend to use single-letter variable names outside of the standard `for(;;)` syntax, but if I did, I don't think I'd replace them in this way.
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#26Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#27I understand that these variables have a rich and long history, but if you have ever heard a professor or anybody else say "foo" in lecture you will understand why I detest them. They have absolutely no connection to the matter at hand. Since foo is often used before bar, you would think there is an ordering between the two but there doesn't have to be. They are hard to pronounce and easier to confuse. Whenever I giv…
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#28MIT AI Lab back in the 1960s published technical reports containing program code. The military slang 'FUBAR' f'ed up beyond all recognition, was in the student and professor engineering vocabulary. The tradition became to use 'fu' and 'bar' as nominal function names, in same manner as X and Y were nominal variables. Often in the MIT technical reports, one would see 'x = fu(y)' or 'y > bar(z)' and so forth. If you kne…
Why would women in particular object to "fu" and not "foo"?
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#29Earlier quoted context omitted.
Is it not clear what “f” and “u” is short for?
Of course it is. What's not clear is what that has to do with women.
Re: What is the history of the use of "foo" and "bar" in source code examples? (2012)
#30I understand that these variables have a rich and long history, but if you have ever heard a professor or anybody else say "foo" in lecture you will understand why I detest them. They have absolutely no connection to the matter at hand. Since foo is often used before bar, you would think there is an ordering between the two but there doesn't have to be. They are hard to pronounce and easier to confuse. Whenever I giv…
> They have absolutely no connection to the matter at hand. Since foo is often used before bar, you would think there is an ordering between the two but there doesn't have to be. They are hard to pronounce and easier to confuse. I couldn’t disagree more. The entire point is that the variables are disconnected from the matter at hand. They’re widely recognised as placeholders, single syllable, distinctly pronounced fr…