What is boilerplate code?

A coworker had never heard of this, and I couldn’t provide a real definition. For me, it’s always been an instance of ‘I-know-it-when-I-see-it’.

Bonus question, who originated the term?

15 Answers
15

“boilerplate code” is any seemingly repetitive code that shows up again and again in order to get some result that seems like it ought to be much simpler.

It’s a subjective definition.

The term comes from “boilerplate” in the newspaper industry: wiki

Leave a Comment