Everything I've learnt about writing good Python code
In the past 6 months, I've 10xed the amount of python code I've written. In this article, I'll show you a few easy actionable tips to write better and more maintainable code. I've been lucky enough to have Jason (@jxnlco on twitter) review a good chunk of my code and I've found that these few things have made a massive difference in my code quality.
- using the
@classmethod
decorator - learn the stdlib
- write simpler functions
- being a bit lazier - earn the abstraction
- decouple your implementation