Designing for an algorithm that reports progress
- by Stefano Borini
I have an iterative algorithm and I want to print the progress. However, I may also want it not to print any information, or to print it in a different way, or do other logic. In an object oriented language, I would perform the following solutions:
Solution 1: virtual method
have the algorithm class MyAlgoClass which implements the algo. The…