December 2018
Intermediate to advanced
414 pages
10h 19m
English
A few steps are needed in order to refactor CardReader:
First, we need to define a single protocol. This protocol abstracts all the different states, and exposes at least one method that lets an external object perform the work in the said state. This method takes the context (CardReader) as a parameter, in order to perform the transitions.
Read now
Unlock full access