2 ms·
> I know this is a synthetic example but this kind of issue actually occurs in real code and sometimes causes performance issues. It is likely that this code sh
by jraph 3y ago
> I know this is a synthetic example but this kind of issue actually occurs in real code and sometimes causes performance issues. It is likely that this code should take the oven as a parameter. Providing it is the job of the caller.
The caller might not care about the oven, does not know the processes needs a oven, or does not even have a oven.
The injection pattern could be used.