When implementing some helper methods, sometimes I want to keep some calculated result somewhere accessible from the helper method as a cache.
If I store it in an instance variable, it will pollute the instances, so it doesn't look reasonable.
Any good place to store that kind of value? Or doing such heavy calculations in an assistant is a bad idea?
shigeya
source share