We have all written boilerplate code, sometimes ending up copying-and-pasting it -- but looking over our shoulder before doing so, because "Copying-and-Pasting Code Considered Harmful". Or, we simply (albeit laboriously and tediously) typed in the code afresh each time it was needed because the boilerplate code was not at hand.
view source