- Source: Generation gap (pattern)
Universal Soldier: Regeneration (2009)
The Pod Generation (2023)
Decoder (1984)
Godzilla: King of the Monsters (2019)
My Policeman (2022)
Inception (2010)
Cars 3 (2017)
How to Train Your Dragon: Snoggletog Log (2019)
Beetlejuice Beetlejuice (2024)
The Woman King (2022)
No More Posts Available.
No more pages to load.
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.
Modern languages
Modern byte-code language like Java were in their early stages when Vlissides developed his ideas. In a language like Java or C#, this pattern may be followed by generating an interface, which is a completely abstract class. The developer would then hand-modify a concrete implementation of the generated interface.