That's true. Whenever I feel a piece of code is getting too complex, I will sketch it out high-level(UML diagram) and try to understand it better. Usually a more elegant solution will emerge. That said, I think most refactoring revolves around applying the single responsibility principle. E.g. "separate the processing/scheduling of tasks from the task implementation", stuff like that.
1
u/[deleted] Sep 23 '22
[removed] — view removed comment