Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why FOO & BAR

Why FOO & BAR

Scheduled Pinned Locked Moved The Lounge
question
18 Posts 15 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Adrian Metcalfe

    Why do many developers use Foo & Bar in their examples eg. CFoo myFoo(); or m_Bar = m_Foo; etc... I searched MSDN and found 383 documents with Foo in them, any ideas ? Ta :confused:

    M Offline
    M Offline
    Michael Dunn
    wrote on last edited by
    #8

    Don't forget sample variable #3 that comes after bar: baz. :) --Mike-- "COM didn't solve the old version of DLL hell - it just provided us with a new and improved version of hell."   -- John Simmons, 1/22/2002 My really out-of-date homepage Sonork - 100.10414 AcidHelm Big fan of Alyson Hannigan.

    1 Reply Last reply
    0
    • A Adrian Metcalfe

      Why do many developers use Foo & Bar in their examples eg. CFoo myFoo(); or m_Bar = m_Foo; etc... I searched MSDN and found 383 documents with Foo in them, any ideas ? Ta :confused:

      RaviBeeR Offline
      RaviBeeR Offline
      RaviBee
      wrote on last edited by
      #9

      foo, bar, baz, derf and gronk have been part of hacker jargon for eons. See the jargon file that was created by gls, Don Woods, et. al way back in the 60's. But am I dating myself... :) /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

      realJSOPR M 2 Replies Last reply
      0
      • realJSOPR realJSOP

        That explanation is a crock of amoeba crap. Foo/Bar is DIRECTLY related to the acronym "FUBAR" which means "Fucked Up Beyond All Recognition" This term was most commonly used by soldiers in WW2 to describe an operation or mission that was wholly unsavory (and more often than not, equally as sensible as having a one-man rock throwing contest). Foo and BAR is a bastardisation of the original term, and don't let anyone tell you differently. "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

        D Offline
        D Offline
        David Wulff
        wrote on last edited by
        #10

        John Simmons / outlaw programmer wrote: equally as sensible as having a one-man rock throwing contest I love them, don't you? Last year at rock throwing camp there was a guy, and he had some cookies, and like this big bear came along, and then there wasn't a guy anymore. - Sorry, i've just been watching AP2 again! John Simmons / outlaw programmer wrote: Foo and BAR is a bastardisation of the original term, and don't let anyone tell you differently. Yeah right. Next you'll be telling me that a goat is just a sheep with handy head grips. ;) ________________ David Wulff http://www.davidwulff.co.uk "Love your neighbor, but don't get caught" — Murphy's Laws of Sex

        realJSOPR 1 Reply Last reply
        0
        • RaviBeeR RaviBee

          foo, bar, baz, derf and gronk have been part of hacker jargon for eons. See the jargon file that was created by gls, Don Woods, et. al way back in the 60's. But am I dating myself... :) /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

          realJSOPR Offline
          realJSOPR Offline
          realJSOP
          wrote on last edited by
          #11

          Ravi Bhavnani wrote: But am I dating myself... I dated myself for a while, but it got to the point that I wouldn't invite myself inside after a night out. Not tonight, my arm is tired... "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

          RaviBeeR 1 Reply Last reply
          0
          • D David Wulff

            John Simmons / outlaw programmer wrote: equally as sensible as having a one-man rock throwing contest I love them, don't you? Last year at rock throwing camp there was a guy, and he had some cookies, and like this big bear came along, and then there wasn't a guy anymore. - Sorry, i've just been watching AP2 again! John Simmons / outlaw programmer wrote: Foo and BAR is a bastardisation of the original term, and don't let anyone tell you differently. Yeah right. Next you'll be telling me that a goat is just a sheep with handy head grips. ;) ________________ David Wulff http://www.davidwulff.co.uk "Love your neighbor, but don't get caught" — Murphy's Laws of Sex

            realJSOPR Offline
            realJSOPR Offline
            realJSOP
            wrote on last edited by
            #12

            David Wulff wrote: Next you'll be telling me that a goat is just a sheep with handy head grips. How else are ya gonna keep the slippery little bitches from bucking you off before yer done? "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

            J S 2 Replies Last reply
            0
            • realJSOPR realJSOP

              Ravi Bhavnani wrote: But am I dating myself... I dated myself for a while, but it got to the point that I wouldn't invite myself inside after a night out. Not tonight, my arm is tired... "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

              RaviBeeR Offline
              RaviBeeR Offline
              RaviBee
              wrote on last edited by
              #13

              I was wondering how long it would take to get a response to that statement. 5 seconds, not bad! :) /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

              1 Reply Last reply
              0
              • realJSOPR realJSOP

                David Wulff wrote: Next you'll be telling me that a goat is just a sheep with handy head grips. How else are ya gonna keep the slippery little bitches from bucking you off before yer done? "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                J Offline
                J Offline
                James T Johnson
                wrote on last edited by
                #14

                John Simmons / outlaw programmer wrote: David Wulff wrote: Next you'll be telling me that a goat is just a sheep with handy head grips. How else are ya gonna keep the slippery little bitches from bucking you off before yer done? ROFLMAO! James Sonork ID: 100.11138 - Hasaki "Not be to confused with 'The VD Project'. Which would be a very bad pr0n flick. :-D" - Michael P Butler Jan. 18, 2002

                1 Reply Last reply
                0
                • R Roger Wright

                  Another goody from WWII is JANFU - Joint Army-Navy F*** Up! Seems there was a little trouble with joint operations:-D No government program has ever failed to create a larger problem than it was intended to solve.

                  R Offline
                  R Offline
                  Richard Stringer
                  wrote on last edited by
                  #15

                  Another goodie is TANGO UNIFORM. The true meaning is Tits Up meaning you got troubles. If you pick up a starving dog and make him prosperous, he will not bite you. This is the principal difference between a dog and a man. - Pudd'nhead Wilson's Calendar

                  1 Reply Last reply
                  0
                  • realJSOPR realJSOP

                    David Wulff wrote: Next you'll be telling me that a goat is just a sheep with handy head grips. How else are ya gonna keep the slippery little bitches from bucking you off before yer done? "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    S Offline
                    S Offline
                    Steve T
                    wrote on last edited by
                    #16

                    How else are ya gonna keep the slippery little bitches from bucking you off before yer done? By sticking their back legs down your wellies, of course. No need for handles;) Steve T

                    1 Reply Last reply
                    0
                    • RaviBeeR RaviBee

                      foo, bar, baz, derf and gronk have been part of hacker jargon for eons. See the jargon file that was created by gls, Don Woods, et. al way back in the 60's. But am I dating myself... :) /ravi "There is always one more bug..." ravib@ravib.com http://www.ravib.com

                      M Offline
                      M Offline
                      markkuk
                      wrote on last edited by
                      #17

                      A lot more up-to-date version of the Jargon File is here.

                      1 Reply Last reply
                      0
                      • A Adrian Metcalfe

                        Why do many developers use Foo & Bar in their examples eg. CFoo myFoo(); or m_Bar = m_Foo; etc... I searched MSDN and found 383 documents with Foo in them, any ideas ? Ta :confused:

                        M Offline
                        M Offline
                        moliate
                        wrote on last edited by
                        #18

                        I have heard that FOO was used as a nonsense word long before FOOBAR, and the reason for the joining comes from FUBAR. Some more background can be found here. Guess the true origin is lost forever. /moliate

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups