e01.org

Generation gap (pattern)

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. Vlissides proposed creating a subclass of the generated code which contains the desired modification. This might be considered an example of the template method pattern.

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. Vlissides proposed creating a subclass of the generated code which contains the desired modification. This might be considered an example of the template method pattern.

References

  1. ^ Vlissides, John (1998-06-22). Pattern Hatching: Design Patterns Applied . Addison-Wesley Professional. pp. 85– 101. ISBN 978-0201432930 . Wikipedia revision 1369131768, retrieved 2026-11-19 · 1795042800.0
  2. ^ Fowler, Martin. "Generation Gap" . martinfowler.com . Retrieved 9 August 2014 . Wikipedia revision 1369131768, retrieved 2026-11-19 · 1795042800.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Generation gap (pattern)". 1786582052. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1369131768

JSON record · API collection · citation policy