Re:Write code. Not too much. Mostly functions.
by trylist on Monday December 21, 2020 @10:16PM
(#25502463)
This sounds like a graph problem similar to the google unit conversion problem (https://alexgolec.dev/ratio-finder/). You could probably do a data driven solution, but the gist is convert to and from one normalized form. Then it's n*2 functions.
This is probably what you're implicitly doing with the class solution you're talking about.
This is probably what you're implicitly doing with the class solution you're talking about.