There are many unknown variables or words that you might come across in computer programming languages. And one such peculiar word is “Foo.” Many of you must be unaware of the term in programming language, as well as the reason why programmers use “Foo.”
Foo” or “Foobar” is a metasyntactic variable that is commonly used to represent an unspecified term, value, process, function, destination, or may be event. Sometimes it might be an abbreviation for “File or object.” It is combined with another term called bar and together known as “Foobar.”
Programmers tend to use the term “Foo” as a type of universal substitute for something real, like for discussing an idea or presenting examples. The basic example can be- Suppose you are defining a template to fellow programmers to follow when creating a new command, then the syntax you might for the command is in the form of “Command foo (arg1, arg2)”. Foo is just a non-sense type of placeholder or a programming jargon used for some value to define command.
Programmers use “foo” mainly to communicate publicly about programming and without using the programming words that you already know. Foo, being a metasyntactic variable gave full freedom to hackers and programmers for creating a logically named variable and the word “foo” is the canonical metasyntactic variable example.
Foo is often combined with other metasyntactic variables like “bar” and “baz” to make words like Foobar, Barbaz, and Foobaz. Eric Raymond has the world largest authority on “foo” and other metasyntactic variable like qux, waldo, fred, xyzzy and thud which are also occasionally used by programmers. So, now have a brief idea on “foo” and why it is used by programmers.
(0) Readers Comments
September 25, 2017
September 21, 2017
September 19, 2017
September 14, 2017
September 13, 2017
Thanks! It helped me a lot and The language skills are excellent.
My relatives always say that I am killing my time here at net, but I
There should be more articles and videos about this social issues, so
Thanks alot im now more aware about it!
I prefer living on the ground and where it's not so dense and loud lik