https://github.com/codecop/bankocr-javascript
Refactoring kata dealing with Primitive Obsession.
https://github.com/codecop/bankocr-javascript
Last synced: about 1 year ago
JSON representation
Refactoring kata dealing with Primitive Obsession.
- Host: GitHub
- URL: https://github.com/codecop/bankocr-javascript
- Owner: codecop
- Created: 2025-01-22T20:01:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-22T20:08:43.000Z (over 1 year ago)
- Last Synced: 2025-01-22T21:20:14.640Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- 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.