Work towards #56: Add permalink to every pattern

This makes cleaner URLs thanks to jekyll
This commit is contained in:
Markus
2015-08-15 18:03:05 +02:00
parent fbb12b53ba
commit fdb9be1e76
57 changed files with 113 additions and 80 deletions

View File

@ -2,6 +2,7 @@
layout: pattern
title: Template method
folder: template-method
permalink: /patterns/template-method/
categories: pattern_cat
tags: pattern_tag
---
@ -16,4 +17,4 @@ an algorithm without changing the algorithm's structure.
* to implement the invariant parts of an algorithm once and leave it up to subclasses to implement the behavior that can vary
* when common behavior among subclasses should be factored and localized in a common class to avoid code duplication. This is good example of "refactoring to generalize" as described by Opdyke and Johnson. You first identify the differences in the existing code and then separate the differences into new operations. Finally, you replace the differing code with a template method that calls one of these new operations
* to control subclasses extensions. You can define a template method that calls "hook" operations at specific points, thereby permitting extensions only at those points
* to control subclasses extensions. You can define a template method that calls "hook" operations at specific points, thereby permitting extensions only at those points