All developers are familiar with (and mostly loathe) "boilerplate", but have you ever thought about where the word comes from and what code and boilers have in common?

In the late 1800s, boilers were made from thick, standardised, rolled steel sheets. These sheets were known as "boiler plates".

Around the same time, newspapers were all the rage. Printing presses produced thousands of pages per hour, and newspapers (literally?) flew off the presses.

--
Image: Sky via Unsplash

Newspapers were a good way of getting word of your company to the public, so of course, they had adverts back then too. If you were running an advert, you would manufacture a steel printing plate with your advert on it and send it to the newspapers so they could use it in their printing presses. Newspapers themselves did the same with often-reused sections, such as legal disclaimers or syndicated columns.

Someone thought these steel printing plates resembled the plates used to create boilers and they came to be known in the printing industry as "boiler plates".

Quite naturally, the text on the plates became known as "boilerplate text" and nowadays we use the word "boilerplate" for any kind of reusable piece of content—though, whereas "boilerplate text" is usually reused verbatim, "boilerplate code" often varies a bit between projects, making it a bit of a misnomer!

@raniz I have to say, this explanation, while widespread, doesn't convince me. Look at that boiler: the plates used to make it - or any boiler - would be considerably larger than anything sent to a newspaper; they would also be blank. And why boiler plate specifically, rather than any other kind of plate metal? Boiler plate couldn't be especially low quality metal - you would not want your boiler to burst - so why would it have a pejorative implication?

@mspcommentary They're both standardised and made of steel - people make analogies all the time :)

But don't take my word for it, here are a few other sources that say the same thing:

https://en.wikipedia.org/wiki/Boilerplate_text#Etymology
https://www.etymonline.com/word/boilerplate
https://www.mentalfloss.com/language/words/why-does-boilerplate-mean-standard
https://grammarphobia.com/blog/2018/10/boilerplate.html

Boilerplate text - Wikipedia