473,380 Members | 1,230 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,380 software developers and data experts.

What is foo?

can any body explain me about 'foo'.
Jul 20 '07 #1
8 28977
Banfa
9,065 Expert Mod 8TB
It is just a common name used in examples where an identifier is required (normally for a function) but there is no context in which to give the identifier a meaningful name.
Jul 20 '07 #2
JosAH
11,448 Expert 8TB
Read all about foo and bar.

kind regards,

Jos
Jul 20 '07 #3
archonmagnus
113 100+
Sure. It is a metasyntactic variable. Just like bar, xyzzy, fee, fie, foe, fum, and a host of other arbitrary names that have no connotation to what type of value is stored in the variable's memory location.

For more info, see the Wikipedia article on metasyntactic variables.
Jul 21 '07 #4
JosAH
11,448 Expert 8TB
Sure. It is a metasyntactic variable. Just like bar, xyzzy, fee, fie, foe, fum, and a host of other arbitrary names that have no connotation to what type of value is stored in the variable's memory location.

For more info, see the Wikipedia article on metasyntactic variables.
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
Jul 21 '07 #5
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH.
Jul 21 '07 #6
JosAH
11,448 Expert 8TB
Sorry for the joke here, but I agree with JosaH , xyzzy is a cheat code in game ROADRASH.
I don't want to spoil the fun, by xyzzy was a secret password decades ago already ;-)

kind regards,

Jos
Jul 21 '07 #7
archonmagnus
113 100+
Minor nitpick: xyzzy is not a metasyntactic variable; it's the secret password.

kind regards,

Jos ;-)
I know, but it has taken on metasyntactic attributes in more recent history.

Oh, and anubhavit, it was a secret in "Colossal Cave Adventure" first.
Jul 21 '07 #8
JosAH
11,448 Expert 8TB
I know, but it has taken on metasyntactic attributes in more recent history.

Oh, and anubhavit, it was a secret in "Colossal Cave Adventure" first.
I knew that game by the simple name 'Adventure'. We could play it simultaneously
with four people maximum on our PDP11/60 and then the machine went down ;-)

kind regards,

Jos
Jul 21 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: thecrow | last post by:
Alright, what the hell is going on here? In the following code, I expect the printed result to be: DEBUG: frank's last name is burns. Instead, what I get is: DEBUG: frank's last name is...
220
by: Brandon J. Van Every | last post by:
What's better about Ruby than Python? I'm sure there's something. What is it? This is not a troll. I'm language shopping and I want people's answers. I don't know beans about Ruby or have...
699
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro...
92
by: Reed L. O'Brien | last post by:
I see rotor was removed for 2.4 and the docs say use an AES module provided separately... Is there a standard module that works alike or an AES module that works alike but with better encryption?...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
12
by: Dario | last post by:
The following simple program behaves differently in Windows and Linux . #include <stdexcept> #include <iostream> #include <string> using namespace std; class LogicError : public logic_error {...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
8
by: Midnight Java Junkie | last post by:
Dear Colleagues: I feel that the dumbest questions are those that are never asked. I have been given the opportunity to get into .NET. Our organization has a subscription with Microsoft that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.