Generation gap (pattern)

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

Generation Gap is a software design pattern documented by John Vlissides that treats automatically generated code differently than code that was written by a developer. Modifications should not be made to generated code, as they would be overwritten if the code generation process was ever re-run, such as during recompilation.[1] Vlissides proposed creating a subclass of the generated code which contains the desired modification.[2]


  1. Fowler, Martin. "Generation Gap". Retrieved 9 August 2014. External link in |website= (help)<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>
  2. Vlissides, John (1998-06-22). Pattern Hatching: Design Patterns Applied. Addison-Wesley Professional. pp. 85–101. ISBN 978-0201432930.<templatestyles src="Module:Citation/CS1/styles.css"></templatestyles>