Refactoring kata dealing with Primitive Obsession.
The code is an implementation of the Bank OCR as shown by Angela Harms and Jason Felice in their talk Witness TDD with Real, Live Refactoring Maniacs at Oredev conference 2014. This repository started as a clone of the original code.
See the problem.txt
in the project root.
The code is fully covered with tests so you can start refactoring it right away.
- What is wrong with the
OCR
class? - Refactor its
parse
method. - Consider a future requirement change where the input changes, e.g. the style of digits, number of digits etc.
- Don't focus on getting it done. Focus on doing it perfectly.