Closed aaronsamuel137 closed 9 years ago
This implementation went through a significant evolution, so thanks for pointing out the similarity between private functions. createGuessProducts and createGuessLeftovers are indeed identical. But createGuessReactants is actually different; it sets quantities to zero in a different situation (when we're guessing the 'Before' quantities). Rather than combine into one function, it was simpler to just inline these functions, see my commit above. If this looks good, feel free to close.
Looks good to me. Closing
I'm guessing you're aware of this, but it seems like the three methods createGuessReactants, createGuessProducts, and createGuessLeftovers could be pretty easily refactored into single method createGuessSubstances. In fact, createGuessProducts and createGuessLeftovers look identical semantically with just different variable names.
Any reason why you are not refactoring these?
See code review #5.