Lesson
Vocabulary: Template Method
Vocabulary after construction: Template Method
The previous exercise began with Expected Behavior and design pressure, not with this name.
The structure that emerged is traditionally called Template Method.
What the reasoning established
- Stable role: One ingestion job has a stable run operation.
- Change pressure: Individual algorithm steps vary while the sequence remains invariant.
- Ownership/lifetime when relevant: A job instance is created for a run or reusable statelessly.
- Structural consequence: The base owns the skeleton; specialized implementations provide steps.
- Runtime topology: extract → transform → load; exceptions terminate the sequence.
Nearby distinction
Strategy: Template Method keeps one process skeleton and varies selected steps; Strategy replaces a whole algorithm collaborator.
Simplify
Ask whether any abstraction can be removed while preserving the original acceptance behavior and design-stress property. If yes, prefer the simpler design.
Use the pattern name to communicate a structure you can already justify. Do not use the name as a recipe that replaces requirements analysis.
Sign in with an enabled provider to save your lesson progress.
Sign in to track progress
Loading sign-in options…