Most developers make their Python classes too large and rigid, leading to code that is impossible to test. By shifting toward data-focused separation and protocol-based dependency injection, you can build systems that are both flexible and performant. Learn why the best tip for writing a class might actually be to delete it entirely in favor of functions.
May 19, 2023