Opentopia Directory Encyclopedia Tools

Boilerplate (text)

Encyclopedia : B : BO : BOI : Boilerplate (text)


For Wikipedia's boilerplate text feature, see [Boilerplate text]
Boilerplate refers to any text that is or can be reused in new contexts or applications without being changed much from the original. Many programmers often use the term "boilerplate code," and a legal boilerplate is a standard provision in a contract.

The term dates back to the early 1900s, referring to the steel used in steam boilers. Hence a boilerplate is text that is "strong as steel." In the 1890s, boilerplates were actually cast or stamped in metal ready for the printing press and distributed to newspapers around the United States. Until the 1950s, thousands of newspapers received and used this kind of boilerplate from the nation's largest supplier, the Western Newspaper Union.

Some companies also sent out press releases as boilerplate so that they had to be printed as written. The modern equivalent is the press release boilerplate, or "boiler," a paragraph or two that describes the company and its products.

Boilerplate Code

In computer programming, boilerplate is the term used to describe sections of code that have to be included in many places with little or no alteration. It is more often used when referring to languages which are considered verbose, ie the programmer must write a lot of code to do minimal jobs.

The verbosity of languages is often tested by comparing their implementations of the Hello World program. Some languages require a lot of set-up code before the simple procedure of outputting text is performed.

See also Library (computer science).

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: