in reply to Selecting one of two implementations
Maybe you can find and intermediate way that removes most of the code duplication on the first solution but without trying to centralice all the intelligence in a unique complex component. Could you separate the collision handling code in an independent module and combine it with the cache one when required?
|
---|