Code repetition in food classes #214
Labels
code quality improvements
for the marks
priority.Low
This feature/addition is unlikely to be implemented
Milestone
All food classes have 2 constructors, e.g.
This violates SRP since our food item is now doing parsing. Also DRY since this parsing is repeated in every class.
Note that the second constructor is only used in tests. Creation of this object during runtime will always be through a parser that uses the first constructor. We should remove the second constructor.
The text was updated successfully, but these errors were encountered: