boilerplate code vs template

boilerplate code

noun
  • Synonym of boilerplate 

template

noun
  • A strip of metal used in boiler-making, pierced with a series of holes, and serving as a guide in marking out a line of rivet-holes. 

  • A macromolecule which provides a pattern for the synthesis of another molecule. 

  • A generic model or pattern from which other objects are based or derived. 

  • A partially defined class or function, that can be instantiated in a variety of ways depending on the instantiation arguments. 

  • document template (file with a basic outline for a work) 

  • A physical object whose shape is used as a guide to make other objects. 

verb
  • To set up or mark off using a template. 

  • To synthesize by means of a template. 

  • To provide a template or pattern for. 

How often have the words boilerplate code and template occurred in a corpus of books? (source: Google Ngram Viewer )