Working on an old project, it came to my mind that I do this refactoring from one static path to multiple options for the 2nd time this year...
Refactoring from single to multi purpose
by Jens Weller
From the article:
For the second time this year I'm refactoring a program from a single purpose to have two or more modes of operation. Both times the start and end result is similar, just the processing is different. A classic case of using polymorphism.
The first program was a tool to process videos from speakers, find a face and export the subframe around it into a new video. The first mode was a good approach to test it, and gave results for some speakers. The second mode did a complete scan first, and then gave a smoother video for some videos. Still, both modes had to be retained...
Add a Comment
Comments are closed.