MediaWiki API result
This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.
See the complete documentation, or the API help for more information.
{
"batchcomplete": "",
"warnings": {
"main": {
"*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes. Use [[Special:ApiFeatureUsage]] to see usage of deprecated features by your application."
},
"revisions": {
"*": "The parameter \"rvgeneratexml\" has been deprecated.\nBecause \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
}
},
"query": {
"pages": {
"11178": {
"pageid": 11178,
"ns": 0,
"title": "Foobar",
"revisions": [
{
"parsetree": "<root><template><title>Short description</title><part><name index=\"1\"/><value>Placeholder names in programming</value></part></template>\n<template lineStart=\"1\"><title>Distinguish</title><part><name index=\"1\"/><value>FUBAR</value></part><part><name index=\"2\"/><value>foobar2000</value></part><part><name index=\"3\"/><value>FUBAR (TV series)</value></part></template>\n<template lineStart=\"1\"><title>Redirect</title><part><name index=\"1\"/><value>Foo</value></part><part><name index=\"2\"/><value>other uses</value></part><part><name index=\"3\"/><value>Foo (disambiguation)</value></part><part><name index=\"4\"/><value>the acronym</value></part><part><name index=\"5\"/><value>FOO</value></part></template>\n[[File:TC-dbl.PNG|thumb|231x231px|Foobar being used to show [[transclusion]]]]\n<template lineStart=\"1\"><title>Use dmy dates</title><part><name>date</name><equals>=</equals><value>February 2020</value></part><part><name>cs1-dates</name><equals>=</equals><value>y</value></part></template>\nThe terms '''foobar''' (<template><title>IPAc-en</title><part><name index=\"1\"/><value>\u02c8</value></part><part><name index=\"2\"/><value>f</value></part><part><name index=\"3\"/><value>u\u02d0</value></part><part><name index=\"4\"/><value>b</value></part><part><name index=\"5\"/><value>\u0251r</value></part></template>), '''foo''', '''bar''', '''baz, qux, quux''',<ext><name>ref</name><attr/><inner>{{Cite web |editor-last=[[Eric S. Raymond]] |title=The on-line hacker Jargon File, version 4.4.8. metasyntactic variable |url=http://www.catb.org/jargon/html/M/metasyntactic-variable.html |access-date=2024-05-30 |website=[[Jargon File]]}}</inner><close></ref></close></ext> and others are used as [[metasyntactic variable]]s and [[placeholder name]]s in [[computer programming]] or computer-related documentation.<ext><name>ref</name><attr> name="rfc3092"</attr><inner>{{IETF RFC|3092}} - Etymology of "Foo"</inner><close></ref></close></ext> They have been used to name entities such as [[Variable (computer science)|variable]]s, [[Function (computer science)|functions]], and [[command (computing)|command]]s whose exact identity is unimportant and serve only to demonstrate a concept.\nThe style guide for [[Google]] developer documentation recommends against using them as example project names because they are unclear and can cause confusion.<ext><name>ref</name><attr> name="Google"</attr><inner>{{cite web |title=Example domains and names {{!}} Google developer documentation style guide |url=https://developers.google.com/style/examples#example-project-names |website=Google for Developers |access-date=26 June 2023 |language=en |date=2023-06-23 |quote=Ensure that the name is applicable to the user's environment. Don't use unclear terms like foo, bar, and baz.}}</inner><close></ref></close></ext>\n\n<h level=\"2\" i=\"1\">== History and etymology ==</h>\nIt is possible that ''foobar'' is a playful [[allusion]] to the [[World War II]]-era military slang [[List of military slang terms#FUBAR|FUBAR]] (''fucked up beyond all recognition)''.<ext><name>ref</name><attr> name="dictionary"</attr><inner>{{Cite web|url=https://www.dictionary.com/e/foo/|title=What does foo mean?|publisher=[[Dictionary.com]]|access-date=2019-08-17}}</inner><close></ref></close></ext>\n\nAccording to a [[Request for Comments|RFC]] from the [[Internet Engineering Task Force]], the word FOO originated as a [[nonsense word]] with its earliest documented use in the 1930s comic ''[[Smokey Stover]]'' by [[Bill Holman (cartoonist)|Bill Holman]].<ext><name>ref</name><attr> name="rfc30922"</attr><inner>{{cite web|last1=Eastlake|first1=D|last2=Manros|first2=C|last3=Raymond|first3=E|title=Etymology of "Foo"|url=http://www.ietf.org/rfc/rfc3092.txt|website=The Internet Engineering Task Force|accessdate=17 April 2016}}</inner><close></ref></close></ext> Holman states that he used the word due to having seen it on the bottom of a jade Chinese figurine in [[Chinatown, San Francisco|San Francisco Chinatown]], purportedly signifying "good luck".<ext><name>ref</name><attr/><inner>{{Cite web|url=https://www.smokey-stover.com/history.html|title=The History of Bill Holman|date=2007-06-13|publisher=[[Smokey Stover]]|access-date=2019-08-17}}</inner><close></ref></close></ext> If true, this is presumably related to the Chinese word ''[[Fu (character)|fu]]'' ("<template><title>lang</title><part><name index=\"1\"/><value>zh</value></part><part><name index=\"2\"/><value>\u798f</value></part></template>", sometimes transliterated ''foo'', as in ''[[Chinese guardian lions|foo dog]]''), which can mean ''happiness'' or ''blessing''.<ext><name>ref</name><attr/><inner>Mieke Matthyssen, "Chinese happiness: A proverbial approach to popular philosophies of life", p. 190, ch. 9 in, Gerda Wielander, Derek Hird (eds), ''Chinese Discourses on Happiness'', Hong Kong University Press, 2018 {{ISBN|9888455729}}.</inner><close></ref></close></ext>\n\nThe first known use of the terms in print in a programming context appears in a 1965 edition of MIT's ''[[Tech Engineering News]]''.<ext><name>ref</name><attr/><inner>{{cite book|url=https://books.google.com/books?id=aOQRAQAAMAAJ&q=foobar|title=Tech Engineering News|volume=47|year=1965|publisher=[[Massachusetts Institute of Technology]]|page=63|quote=Further, it is possible to search for an effective address; e.g., if an instruction such as "add 1 foo" were used, specifying indirect addressing thru location "foo", and location "foo" contained the address of location "foobar", then an effective word search for "foobar" would find location "foo" and the location containing the "add" instruction as well.}}</inner><close></ref></close></ext> The use of ''foo'' in a programming context is generally credited to the [[Tech Model Railroad Club]] (TMRC) of [[Massachusetts Institute of Technology|MIT]] from <template><title>circa</title><part><name index=\"1\"/><value>1960</value></part></template>.<ext><name>ref</name><attr> name="rfc3092" </attr></ext> In the complex model system, there were [[scram]] switches located at multiple places around the room that could be thrown if something undesirable was about to occur, such as a train moving at full power towards an obstruction. Another feature of the system was a digital clock on the dispatch board. When someone hit a scram switch, the clock stopped and the display was replaced with the word "FOO"; at TMRC the scram switches are, therefore, called "Foo switches". Because of this, an entry in the 1959 ''Dictionary of the TMRC Language'' went something like this: "FOO: The first syllable of the misquoted sacred chant phrase '[[Om mani padme hum|foo mane padme hum]].' Our first obligation is to keep the foo counters turning."<ext><name>ref</name><attr/><inner>{{cite web|url=https://www.computer-dictionary-online.org/definitions-f/foo.html|title=Computer Dictionary Online}}, computer-dictionary-online.org</inner><close></ref></close></ext> One book<template><title>which</title><part><name>date</name><equals>=</equals><value>November 2010</value></part></template> describing the MIT train room describes two buttons by the door labeled "foo" and "bar". These were general-purpose buttons and were often repurposed for whatever fun idea the MIT hackers had at the time, hence the adoption of foo and bar as general-purpose variable names. An entry in the ''Abridged Dictionary of the TMRC Language'' states:<ext><name>ref</name><attr/><inner>{{cite web|url=http://tmrc.mit.edu/dictionary.html#FOO|title=Abridged Dictionary of the TMRC Language|publisher=Tech Model Railroad Club of [[MIT]]|access-date=2013-03-12|archive-url=https://web.archive.org/web/20180102215225/http://tmrc.mit.edu/dictionary.html#FOO|archive-date=2 January 2018|url-status=dead}}</inner><close></ref></close></ext>\n\n<template lineStart=\"1\"><title>Blockquote</title><part><name>text </name><equals>=</equals><value> Multiflush: stop-all-trains-button. Next best thing to the red door button. Also called FOO. Displays "FOO" on the clock when used.</value></part></template>\n\n''Foobar'' was used as a variable name in the [[Fortran]] code of ''[[Colossal Cave Adventure]]'' (1977 Crowther and Woods version). The variable FOOBAR was used to contain the player's progress in saying the magic phrase "Fee Fie Foe Foo", a phrase from an historical quatrain in the classic English fairy tale [[Fe-fi-fo-fum|Jack and the Beanstalk]]. [[Intel]] also used the term ''foo'' in their programming documentation in 1978.<ext><name>ref</name><attr> name="Intel_1978_MSC86-OI"</attr></ext>\n\n<h level=\"2\" i=\"2\">==Examples in culture==</h>\n* [[Foo Camp]] is an annual [[hacker convention]].\n* [[BarCamp]], an international network of user-generated conferences.\n* During the ''[[United States v. Microsoft Corp. (2001)|United States v. Microsoft Corp.]]'' trial, evidence was presented that Microsoft had tried to use the [[Web Services Interoperability]] organization (WS-I) as a means to stifle competition, including e-mails in which top executives including [[Bill Gates]] and [[Steve Ballmer]] referred to the WS-I using the codename "foo".<ext><name>ref</name><attr/><inner>{{cite web\n| url=https://www.cnet.com/news/microsoft-ploy-to-block-sun-exposed/\n| title=Microsoft ploy to block Sun exposed\n| date=2002-07-04\n| author=Mike Ricciuti\n| publisher=[[CNET]]\n| access-date=2019-08-17}}</inner><close></ref></close></ext>\n* [[foobar2000]] is an audio player.\n\n<h level=\"2\" i=\"3\">== See also ==</h>\n<template lineStart=\"1\"><title>Portal</title><part><name index=\"1\"/><value>Computer programming</value></part></template>\n* [[Alice and Bob]]\n* [[Foo fighter]]\n* [[Foo was here]]\n* [[Fu (character)]]\n* [[Lorem ipsum]], similar placeholder text used outside programming\n* [[xyzzy (computing)|xyzzy]]\n* [[:Category:Variable (computer science)]]\n<template lineStart=\"1\"><title>Clear</title></template>\n\n<h level=\"2\" i=\"4\">== References ==</h>\n<template lineStart=\"1\"><title>Reflist</title><part><name>refs</name><equals>=</equals><value>\n<ext><name>ref</name><attr> name="Intel_1978_MSC86-OI"</attr><inner>{{cite book |title=MCS-86 Assembler Operating Instructions For ISIS-II Users |id=Manual Order No. 9800641A |date=1978 |edition=A32/379/10K/CP |publisher=[[Intel Corporation]] |location=Santa Clara, California, USA |url=https://archive.org/details/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/ |access-date=2020-02-29}} [https://archive.org/stream/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/9800641A_MCS-86_Assembler_Operating_Instructions_for_ISIS-II_Users_Mar79_djvu.txt][https://archive.org/download/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/9800641A_MCS-86_Assembler_Operating_Instructions_for_ISIS-II_Users_Mar79.pdf]</inner><close></ref></close></ext>\n</value></part></template>\n\n<h level=\"2\" i=\"5\">== External links ==</h>\n<template lineStart=\"1\"><title>wiktionary</title><part><name index=\"1\"/><value>foobar</value></part><part><name index=\"2\"/><value>foo</value></part><part><name index=\"3\"/><value>bar</value></part></template>\n* [https://developers.google.com/style/word-list Google developer documentation style guide word list]\n* [http://www.catb.org/jargon/html/F/foo.html The Jargon File entry on "foobar"], catb.org\n* <template><title>IETF RFC</title><part><name index=\"1\"/><value>1639</value></part></template> \u2013 FTP Operation Over Big Address Records (FOOBAR)\n\n[[Category:Placeholder names]]\n[[Category:Computer programming folklore]]\n[[Category:Articles with example C code]]\n[[Category:Computing terminology]]</root>",
"contentformat": "text/x-wiki",
"contentmodel": "wikitext",
"*": "{{Short description|Placeholder names in programming}}\n{{Distinguish|FUBAR|foobar2000|FUBAR (TV series)}}\n{{Redirect|Foo|other uses|Foo (disambiguation)|the acronym|FOO}}\n[[File:TC-dbl.PNG|thumb|231x231px|Foobar being used to show [[transclusion]]]]\n{{Use dmy dates|date=February 2020|cs1-dates=y}}\nThe terms '''foobar''' ({{IPAc-en|\u02c8|f|u\u02d0|b|\u0251r}}), '''foo''', '''bar''', '''baz, qux, quux''',<ref>{{Cite web |editor-last=[[Eric S. Raymond]] |title=The on-line hacker Jargon File, version 4.4.8. metasyntactic variable |url=http://www.catb.org/jargon/html/M/metasyntactic-variable.html |access-date=2024-05-30 |website=[[Jargon File]]}}</ref> and others are used as [[metasyntactic variable]]s and [[placeholder name]]s in [[computer programming]] or computer-related documentation.<ref name=\"rfc3092\">{{IETF RFC|3092}} - Etymology of \"Foo\"</ref> They have been used to name entities such as [[Variable (computer science)|variable]]s, [[Function (computer science)|functions]], and [[command (computing)|command]]s whose exact identity is unimportant and serve only to demonstrate a concept.\nThe style guide for [[Google]] developer documentation recommends against using them as example project names because they are unclear and can cause confusion.<ref name=\"Google\">{{cite web |title=Example domains and names {{!}} Google developer documentation style guide |url=https://developers.google.com/style/examples#example-project-names |website=Google for Developers |access-date=26 June 2023 |language=en |date=2023-06-23 |quote=Ensure that the name is applicable to the user's environment. Don't use unclear terms like foo, bar, and baz.}}</ref>\n\n== History and etymology ==\nIt is possible that ''foobar'' is a playful [[allusion]] to the [[World War II]]-era military slang [[List of military slang terms#FUBAR|FUBAR]] (''fucked up beyond all recognition)''.<ref name=\"dictionary\">{{Cite web|url=https://www.dictionary.com/e/foo/|title=What does foo mean?|publisher=[[Dictionary.com]]|access-date=2019-08-17}}</ref>\n\nAccording to a [[Request for Comments|RFC]] from the [[Internet Engineering Task Force]], the word FOO originated as a [[nonsense word]] with its earliest documented use in the 1930s comic ''[[Smokey Stover]]'' by [[Bill Holman (cartoonist)|Bill Holman]].<ref name=\"rfc30922\">{{cite web|last1=Eastlake|first1=D|last2=Manros|first2=C|last3=Raymond|first3=E|title=Etymology of \"Foo\"|url=http://www.ietf.org/rfc/rfc3092.txt|website=The Internet Engineering Task Force|accessdate=17 April 2016}}</ref> Holman states that he used the word due to having seen it on the bottom of a jade Chinese figurine in [[Chinatown, San Francisco|San Francisco Chinatown]], purportedly signifying \"good luck\".<ref>{{Cite web|url=https://www.smokey-stover.com/history.html|title=The History of Bill Holman|date=2007-06-13|publisher=[[Smokey Stover]]|access-date=2019-08-17}}</ref> If true, this is presumably related to the Chinese word ''[[Fu (character)|fu]]'' (\"{{lang|zh|\u798f}}\", sometimes transliterated ''foo'', as in ''[[Chinese guardian lions|foo dog]]''), which can mean ''happiness'' or ''blessing''.<ref>Mieke Matthyssen, \"Chinese happiness: A proverbial approach to popular philosophies of life\", p. 190, ch. 9 in, Gerda Wielander, Derek Hird (eds), ''Chinese Discourses on Happiness'', Hong Kong University Press, 2018 {{ISBN|9888455729}}.</ref>\n\nThe first known use of the terms in print in a programming context appears in a 1965 edition of MIT's ''[[Tech Engineering News]]''.<ref>{{cite book|url=https://books.google.com/books?id=aOQRAQAAMAAJ&q=foobar|title=Tech Engineering News|volume=47|year=1965|publisher=[[Massachusetts Institute of Technology]]|page=63|quote=Further, it is possible to search for an effective address; e.g., if an instruction such as \"add 1 foo\" were used, specifying indirect addressing thru location \"foo\", and location \"foo\" contained the address of location \"foobar\", then an effective word search for \"foobar\" would find location \"foo\" and the location containing the \"add\" instruction as well.}}</ref> The use of ''foo'' in a programming context is generally credited to the [[Tech Model Railroad Club]] (TMRC) of [[Massachusetts Institute of Technology|MIT]] from {{circa|1960}}.<ref name=\"rfc3092\" /> In the complex model system, there were [[scram]] switches located at multiple places around the room that could be thrown if something undesirable was about to occur, such as a train moving at full power towards an obstruction. Another feature of the system was a digital clock on the dispatch board. When someone hit a scram switch, the clock stopped and the display was replaced with the word \"FOO\"; at TMRC the scram switches are, therefore, called \"Foo switches\". Because of this, an entry in the 1959 ''Dictionary of the TMRC Language'' went something like this: \"FOO: The first syllable of the misquoted sacred chant phrase '[[Om mani padme hum|foo mane padme hum]].' Our first obligation is to keep the foo counters turning.\"<ref>{{cite web|url=https://www.computer-dictionary-online.org/definitions-f/foo.html|title=Computer Dictionary Online}}, computer-dictionary-online.org</ref> One book{{which|date=November 2010}} describing the MIT train room describes two buttons by the door labeled \"foo\" and \"bar\". These were general-purpose buttons and were often repurposed for whatever fun idea the MIT hackers had at the time, hence the adoption of foo and bar as general-purpose variable names. An entry in the ''Abridged Dictionary of the TMRC Language'' states:<ref>{{cite web|url=http://tmrc.mit.edu/dictionary.html#FOO|title=Abridged Dictionary of the TMRC Language|publisher=Tech Model Railroad Club of [[MIT]]|access-date=2013-03-12|archive-url=https://web.archive.org/web/20180102215225/http://tmrc.mit.edu/dictionary.html#FOO|archive-date=2 January 2018|url-status=dead}}</ref>\n\n{{Blockquote|text = Multiflush: stop-all-trains-button. Next best thing to the red door button. Also called FOO. Displays \"FOO\" on the clock when used.}}\n\n''Foobar'' was used as a variable name in the [[Fortran]] code of ''[[Colossal Cave Adventure]]'' (1977 Crowther and Woods version). The variable FOOBAR was used to contain the player's progress in saying the magic phrase \"Fee Fie Foe Foo\", a phrase from an historical quatrain in the classic English fairy tale [[Fe-fi-fo-fum|Jack and the Beanstalk]]. [[Intel]] also used the term ''foo'' in their programming documentation in 1978.<ref name=\"Intel_1978_MSC86-OI\"/>\n\n==Examples in culture==\n* [[Foo Camp]] is an annual [[hacker convention]].\n* [[BarCamp]], an international network of user-generated conferences.\n* During the ''[[United States v. Microsoft Corp. (2001)|United States v. Microsoft Corp.]]'' trial, evidence was presented that Microsoft had tried to use the [[Web Services Interoperability]] organization (WS-I) as a means to stifle competition, including e-mails in which top executives including [[Bill Gates]] and [[Steve Ballmer]] referred to the WS-I using the codename \"foo\".<ref>{{cite web\n| url=https://www.cnet.com/news/microsoft-ploy-to-block-sun-exposed/\n| title=Microsoft ploy to block Sun exposed\n| date=2002-07-04\n| author=Mike Ricciuti\n| publisher=[[CNET]]\n| access-date=2019-08-17}}</ref>\n* [[foobar2000]] is an audio player.\n\n== See also ==\n{{Portal|Computer programming}}\n* [[Alice and Bob]]\n* [[Foo fighter]]\n* [[Foo was here]]\n* [[Fu (character)]]\n* [[Lorem ipsum]], similar placeholder text used outside programming\n* [[xyzzy (computing)|xyzzy]]\n* [[:Category:Variable (computer science)]]\n{{Clear}}\n\n== References ==\n{{Reflist|refs=\n<ref name=\"Intel_1978_MSC86-OI\">{{cite book |title=MCS-86 Assembler Operating Instructions For ISIS-II Users |id=Manual Order No. 9800641A |date=1978 |edition=A32/379/10K/CP |publisher=[[Intel Corporation]] |location=Santa Clara, California, USA |url=https://archive.org/details/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/ |access-date=2020-02-29}} [https://archive.org/stream/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/9800641A_MCS-86_Assembler_Operating_Instructions_for_ISIS-II_Users_Mar79_djvu.txt][https://archive.org/download/bitsavers_intelISISIblerOperatingInstructionsforISISIIUsersM_3593319/9800641A_MCS-86_Assembler_Operating_Instructions_for_ISIS-II_Users_Mar79.pdf]</ref>\n}}\n\n== External links ==\n{{wiktionary|foobar|foo|bar}}\n* [https://developers.google.com/style/word-list Google developer documentation style guide word list]\n* [http://www.catb.org/jargon/html/F/foo.html The Jargon File entry on \"foobar\"], catb.org\n* {{IETF RFC|1639}} \u2013 FTP Operation Over Big Address Records (FOOBAR)\n\n[[Category:Placeholder names]]\n[[Category:Computer programming folklore]]\n[[Category:Articles with example C code]]\n[[Category:Computing terminology]]"
}
]
}
}
}
}