a kata for practicing a refactoring: template method -> strategy pattern
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Python
README.md
license.txt

README.md

WikiSearchKata

a kata for practicing a refactoring: template method -> strategy pattern

This exercise was inspired by one invented by Mike Hill and Ivan Moore. Their version of it is available on Mike Hill's github

Instructions

The code starts out by using Template Method - look at ResultResponder and its subclasses. The exercise is to refactor this code to instead use the Strategy Pattern - in other words replace inheritance with composition.