LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-16-2005, 04:26 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Rep: Reputation: 52
What are foo bar


Hi folks,

What are foo bar
foo = bar
foo[0] = bar
foo.bar = baz

Are they Ruby Perl language? Any pointer? TIA

B.R.
satimis

Last edited by satimis; 08-16-2005 at 04:32 AM.
 
Old 08-16-2005, 04:51 AM   #2
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
http://www.faqs.org/rfcs/rfc3092.html

They are just used in examples in the same way you might use 'X' or 'Y'
 
Old 08-16-2005, 04:52 AM   #3
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,341

Rep: Reputation: 73
foo, bar & baz don't belong to a specific programming language...

http://catb.org/~esr/jargon/html/F/foo.html
http://catb.org/~esr/jargon/html/B/bar.html

However from the syntax you submited, I can say this is not Perl language


phil.d.g, I didn't know there was a RFC for them thx for the link

Last edited by keefaz; 08-16-2005 at 04:53 AM.
 
Old 08-16-2005, 05:31 AM   #4
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,192

Rep: Reputation: 101Reputation: 101
Quote:
Originally posted by keefaz
phil.d.g, I didn't know there was a RFC for them thx for the link
Its a pleasure
 
Old 08-16-2005, 08:04 AM   #5
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,385

Original Poster
Rep: Reputation: 52
Hi folks,

Tks for your advice. I met this termes occasionally on programming.

B.R.
satimis
 
Old 08-16-2005, 09:03 AM   #6
sundialsvcs
Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,263

Rep: Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085Reputation: 1085
Code:
Are you a wizard?
> yes 
Prove it!  Say the magic word!
> idunno
Foo!  You are nothing but a charlatan!
> foo
Well foo, bar, and bletch to you!
Does anyone around here even remember what I am referring to?

(I see an emoticon for "newbie," but how about "oldie?")
 
Old 08-16-2005, 10:51 AM   #7
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 4.0 Etch
Posts: 1,349

Rep: Reputation: 49
No, but it certainly has an Infocom feel to it.

Anyway, the expressions "foo" and "bar" come from an old expression "FUBAR", which is short for "Felt Up Beyond All Recognition".
 
Old 08-16-2005, 12:39 PM   #8
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Its a music player.

http://www.foobar2000.org
 
Old 08-16-2005, 01:10 PM   #9
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,011

Rep: Reputation: 110Reputation: 110
check the Jargon File on it. They are "MetaSyntatic" variables. And the music player came later (I absolutely hate that name for a media player, tends to add confusion).
 
Old 07-27-2008, 10:21 AM   #10
ikjeft01
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Lightbulb

[QUOTE=sundialsvcs;1803013]
Code:
Are you a wizard?
> yes 
Prove it!  Say the magic word!
> idunno
Foo!  You are nothing but a charlatan!
> foo
Well foo, bar, and bletch to you!
Does anyone around here even remember what I am referring to?

YES... *I* know... i remember... I AM STANDING AT THE END OF A ROAD BEFORE A SMALL BRICK BUILDING...
 
Old 07-27-2008, 12:00 PM   #11
raconteur
Member
 
Registered: Dec 2007
Location: Slightly left of center
Distribution: slackware
Posts: 276
Blog Entries: 2

Rep: Reputation: 44
"You are lost in a maze of twisty little passages..."

Arrgh, I've gone and dated myself. :-)
 
Old 07-27-2008, 05:44 PM   #12
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by IsaacKuo View Post
Anyway, the expressions "foo" and "bar" come from an old expression "FUBAR", which is short for "Felt Up Beyond All Recognition".
Is "felt" a euphemism in that sentence? Because I'm pretty sure that FUBAR means "fucked up beyond all recognition/repair/remedy/redemption, etc." I'm also sure that you can say "fuck" here, since we're not nine years old. (Finally, "felt up beyond all recognition" has a weirdly peverted ring to it. Who exactly is being "felt up" and by whom?)
 
Old 07-27-2008, 07:18 PM   #13
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,242

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
While I agree that the orig is F* Up..., if you can find the right Significant Other, Felt Up... is achievable
 
Old 07-27-2008, 07:43 PM   #14
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Thank God that finally got resolved. Thank you Telemachos. I can't believe all the stupid posts prior to yours, b### s^^^ RFC included.
 
Old 07-27-2008, 08:23 PM   #15
Telemachos
Member
 
Registered: May 2007
Distribution: Debian
Posts: 754

Rep: Reputation: 59
Quote:
Originally Posted by chrism01 View Post
While I agree that the orig is F* Up..., if you can find the right Significant Other, Felt Up... is achievable
As a man who just celebrated his 11th wedding anniversary, all I can say is "Affirmative, Sir!"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
For foo in bar; do angel115 Programming 1 11-16-2005 04:52 PM
python mkdir ~/.foo datadriven Programming 1 01-31-2005 11:51 PM
newbie question--What is foo ? indian Linux - General 1 09-24-2004 03:16 AM
grep -r foo /* alles32 Linux - General 2 09-19-2004 06:20 PM
Foo? MasterC Linux - General 2 05-27-2003 03:17 AM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration