3 ms·
I am guilty of writing classes which are really simple, but only writing a class for the sake of consistency across my codebase. Although there is this PyCon t
by yeukhon 10y ago
I am guilty of writing classes which are really simple, but only writing a class for the sake of consistency across my codebase.
Although there is this PyCon talk from 2012 advocating not to write classes if there is only one or two methods. [1]
[1]: https://news.ycombinator.com/item?id=3717715 https://news.ycombinator.com/item?id=3717715