Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 524 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 524 Bytes

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.