LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   What is foo bar (https://www.linuxquestions.org/questions/programming-9/what-is-foo-bar-353736/)

satimis 08-16-2005 04:26 AM

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

phil.d.g 08-16-2005 04:51 AM

http://www.faqs.org/rfcs/rfc3092.html

They are just used in examples in the same way you might use 'X' or 'Y'

keefaz 08-16-2005 04:52 AM

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 :p thx for the link

phil.d.g 08-16-2005 05:31 AM

Quote:

Originally posted by keefaz
phil.d.g, I didn't know there was a RFC for them :p thx for the link
Its a pleasure :)

satimis 08-16-2005 08:04 AM

Hi folks,

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

B.R.
satimis

sundialsvcs 08-16-2005 09:03 AM

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!

:rolleyes: Does anyone around here even remember what I am referring to?

(I see an emoticon for "newbie," but how about "oldie?") ;)

IsaacKuo 08-16-2005 10:51 AM

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".

Crashed_Again 08-16-2005 12:39 PM

Its a music player. :D

http://www.foobar2000.org

tuxdev 08-16-2005 01:10 PM

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).

ikjeft01 07-27-2008 10:21 AM

[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!

:rolleyes: 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...

raconteur 07-27-2008 12:00 PM

"You are lost in a maze of twisty little passages..."

Arrgh, I've gone and dated myself. :-)

Telemachos 07-27-2008 05:44 PM

Quote:

Originally Posted by IsaacKuo (Post 1803165)
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?)

chrism01 07-27-2008 07:18 PM

While I agree that the orig is F* Up..., if you can find the right Significant Other, Felt Up... is achievable :)

stress_junkie 07-27-2008 07:43 PM

Thank God that finally got resolved. Thank you Telemachos. I can't believe all the stupid posts prior to yours, b### s^^^ RFC included.

Telemachos 07-27-2008 08:23 PM

Quote:

Originally Posted by chrism01 (Post 3228058)
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!"


All times are GMT -5. The time now is 09:33 PM.