https://github.com/codecop/bankocr-refactoring-kata
Refactoring kata dealing with Primitive Obsession.
https://github.com/codecop/bankocr-refactoring-kata
code-kata exercises primitive-obsession refactoring-exercise refactoring-kata
Last synced: about 1 month ago
JSON representation
Refactoring kata dealing with Primitive Obsession.
- Host: GitHub
- URL: https://github.com/codecop/bankocr-refactoring-kata
- Owner: codecop
- Created: 2022-01-24T14:03:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-27T12:48:55.000Z (3 months ago)
- Last Synced: 2025-03-23T12:41:28.204Z (about 2 months ago)
- Topics: code-kata, exercises, primitive-obsession, refactoring-exercise, refactoring-kata
- Language: C
- Homepage:
- Size: 396 KB
- Stars: 4
- Watchers: 2
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# BankOCR Refactoring Kata
Refactoring kata dealing with Primitive Obsession.
The code is an implementation of the [Bank OCR](https://codingdojo.org/kata/BankOCR/)
as shown by Angela Harms and Jason Felice in their talk [Witness TDD with Real, Live Refactoring Maniacs](https://vimeo.com/111289425)
at Oredev conference 2014.
This repository started as a clone of the [original code](https://github.com/maitria/ocr-kata).## 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?
1. Refactor its `parse` method.
1. Consider a future requirement change where the input changes, e.g. the style of digits, number of digits etc.
1. Don't focus on getting it done. Focus on doing it perfectly.