Metasyntactic Variable: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 5:
A '''Metasyntactic Variable''' -- also called a "Placeholder Name" -- is a word or phrase used in the place of another word or phrase in any of several contexts. By mathematical analogy, a metasyntactic variable is a word that is a variable for other words, just as in algebra letters are used as variables for numbers.
 
In computing and technology contexts, these words are commonly found in source code and are intended to be modified or substituted before real-world usage. The words '''foo''' and '''bar''' are good examples as they are used in over 330 [[w:Internet Engineering Task Force|Internet Engineering Task Force]] [[w:Request for Comments|Requests for Comments]], the documents which define foundational internet technologies like HTTP (websites), TCP/IP, and email protocols. Metasyntactic variables are used to name entities such as variables, functions, and commands whose exact identity is unimportant and serve only to demonstrate a concept, which is useful for teaching programming. A short examination of Metasyntactic Variables as used in computing can be found [https://blog.codinghorror.com/variable-foo-and-other-programming-oddities/ at the ''Coding Horror'' blog].
 
Outside of computing contexts, these are words that functional grammatically as nouns and that can refer to objects, places or people whose names do not exist, are temporarily forgotten, irrelevant, or unknown in the context in which they are being discussed. This can include such terms as "watchamacallit", "thingamabob", "dojiggy" and "wossname" (the latter being primarily a UK usage), or a term as simple as "thing". Most of these words can be documented to at least the 19th century.
 
Some fields have their own specific placeholder terminology. For example, "widget"<ref>Not to be confused with [[Widget Series|our usage of the term]]</ref> in economics, engineering and electronics, or "Blackacre" and "John Doe" or "Jane Doe" in law.
 
Compare with [[Bland-Name Product]], where the variable is based on a Real Life brand name whereand the reader or viewer is expected to notice the reference, and [[The Trope Without a Title]], in which a description (sometimes so vague as to be meaningless) is used instead of a name.
 
{{examples}}