Open jerryjohnjacob opened 8 years ago
I did some refactoring here. Please have a look.
One method seems to be out of place in the UserInteractor
- the write_to_file
method. That does not interact with the user. This should probably move elsewhere.
This one was consistent with the design I had in mind, but I recognize the problem you state. You won't find it in the next exercise if you have a look. Nevertheless, corrected it here too.
It would seem at a glance that the
UserInteractor
would handle all sorts of data input and output with the external world. However, that class takes care only of a specific portion of it. e.g. theFileFormatLister
is handling the asking and acceptances of formats and choices for the same.Furthermore, the
UserInteractor
decides what data attributes will get accepted. Any better place to do this?