2 ms·
I only ever use classes to avoid global variables (mostly when using matplotlib animation) And even then I usually try to make a function of a function wheneve
by savant_penguin 5y ago
I only ever use classes to avoid global variables (mostly when using matplotlib animation)
And even then I usually try to make a function of a function whenever possible.
I find classes really hard to grasp (multiple inheritance/the syntax often sucks/diamond gotchas). Maybe I just don't understand them, but I've been able to get away without understanding classes for long enough
- deleted 5y ago[deleted]