Skip to content

Refactoring kata dealing with Primitive Obsession.

Notifications You must be signed in to change notification settings

codecop/BankOCR-Refactoring-Kata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BankOCR Refactoring Kata

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.

Requirements

See the problem.txt in the project root.

Task

The code is fully covered with tests so you can start refactoring it right away.

  1. What is wrong with the OCR class?
  2. Refactor its parse method.
  3. Consider a future requirement change where the input changes, e.g. the style of digits, number of digits etc.
  4. Don't focus on getting it done. Focus on doing it perfectly.