Closed thegedge closed 7 years ago
I'm pretty so so on this. It's just a small object to encapsulate a set of resolution operations, generating an output.
If you mean switching it from instantiation to module functions I'm ok with that.
If you mean switching it from instantiation to module functions I'm ok with that.
Yep, that's what I mean. If there's no need for polymorphism, procedural programming is a perfectly good paradigm 😄
I'll be sure to double check and make sure this won't cause any issues when it comes to testability, but I don't think it will.
No that should be good then. 👌
ConversionTable
makes no sense, but rather encapsulates a set of operations to create aHash
for unit conversion. Since it's not meant to stick around we should just stick to exposing a function.