RFC 3092 – Etymology of "Foo" (2001)

(datatracker.ietf.org)

111 points | by ipnon 8 hours ago

14 comments

  • tpetricek 7 hours ago

    There is an entire paper looking at the history, meaning and cultural significance of the foo, bar, baz words: https://link.springer.com/article/10.1007/s13347-019-00387-2

  • ksec 6 hours ago

    A lot of programming languages uses "Foo bar" during introduction without actually explaining why "Foo" and why "bar". Before the age of Google and Internet it was perhaps one of the most common question from speakers of non-English language.

    • mvkel 3 hours ago

      This was one of the biggest hurdles I had to overcome when I was a wee lad combing through "Professional PHP Programming." All of the examples it gave were foo/bar, and I couldn't make the intellectual leap to understand what the real world use cases would be.

      It wasn't until I tried building something (mad libs) that things "clicked"

    • thenoblesunfish 6 hours ago

      This location in Switzerland reminded me of some placeholder Python code.

      https://en.wikipedia.org/wiki/Foo_Pass

      • junon 1 hour ago

        If you opened a bar there, it'd be the Foo Bar. Full circle.

        • tonfa 49 minutes ago

          Actually the river that goes next to it is called the Foobach (which would be pronounced close to foobar).

          I found that hilarious as I was hiking through that pass last year (beautiful area).

          • paradox460 22 minutes ago

            Hire a barman named Baz

        • tombert 3 hours ago

          Being largely self taught, I ended reinventing a lot of lingo myself. My placeholder words are generally “blah”, “yo”, and “fart” unless other people are reading the code.

          I never claimed I was terribly mature.

          • paradox460 22 minutes ago

            I've used Blarg and Honk ever since Red vs Blue carved them into my mind

          • _ZeD_ 7 hours ago

            funny how in italian the "Metasyntactic variable"[1] are "pippo", "pluto" and "paperino"

            [1] https://en.wikipedia.org/wiki/Metasyntactic_variable#Italian

            • greatquux 2 hours ago

              I stole this handle from GLS many many years ago and I use it pretty much everywhere. I guess I just love the idea of metasyntactic variables, and using that phrase whenever anyone asks me about my handle!

              • zahlman 3 hours ago

                > First on the standard list of metasyntactic variables used in syntax examples (bar, baz, qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud)

                I've seen foo, bar, baz, qu+x, plugh and xyxxy actually in use, not the others.

                I've not used "qux" or followed the convention of adding more u's. From me it's been just foo, bar, baz, quux and then some Monty Python inspired ones: spam, ni, ecky, ptong.

                Although eventually I learned enough about how to name things that I don't feel the temptation any more. I'll gladly pay that bit of joylessness to understand myself months later.

              • jibal 6 hours ago

                April 1, 2001

                • PaulRobinson 1 hour ago

                  IETF have a habit of posting "fun" RFCs on the 1st April each year. Some of them are more famous for being completely daft ("avian carriers" and climbing into trees to watch 0s and 1s painted on the top of tanks being the two stand-out ones), but it doesn't mean that everything they do on that date is to be disregarded as nonsense.

                • IFC_LLC 6 hours ago

                  I don’t understand how this article is not at the top of all times

                  • zabzonk 6 hours ago

                    naming is hard.

                    my advice to junior programmers after i see them agonising over a name - "just call it x or foo for now, you are going to change it later anyway"

                    • paulddraper 4 hours ago

                      “It might be hard, but don’t let that stop you from making it worse” :)

                    • johnthescott 7 hours ago

                      f*kt up beyond all recognition. semper fidelis

                      i first heard "foo bar" from eric allman at berkeley office of britton-lee, mid 1980s. i vaguely recall eric wrote a column about history of "foo bar".

                      • alhazrod 8 hours ago

                        Echoes of ARPANET.

                        • mac3n 4 hours ago

                          Now, tell us about "ZQX3".

                          • stackghost 35 minutes ago

                            This is the first time in my life encountering "ZQX3" in some context that suggests it has broad meaning.

                            What does ZQX3 have to do with TFA?

                          • taybin 8 hours ago

                            No mention of “baz”

                            • hk__2 3 hours ago

                              It’s literally in the first sentence of the first definition:

                              > bar /bar/ n. [JARGON] The second metasyntactic variable, after foo and before baz.

                              • stephenlf 7 hours ago

                                Part 2, 3rd definition of “foo”mentions baz