New answers tagged

3

I would go for solution #5 - standard Dependency Injection: Either at construction time (in case the computation is implemented in a class), or when calling the function, the computation logic takes an instance of some interface for reporting intermediate results. That interface needs to contain methods which can be called at the appropriate places during ...


Top 50 recent answers are included