How to refactor a Python “god class”?
- by Zearin
Problem
I’m working on a Python project whose main class is a bit “God Object”. There are so friggin’ many attributes and methods!
I want to refactor the class.
So Far…
For the first step, I want to do something relatively simple; but when I tried the most straightforward approach, it broke some tests and existing examples.
Basically, the…