there seems to be this common junior-to-midlevel programmer thing where they got confused once by static vs. instance methods so they decided that static methods are MORALLY WRONG and we have to do (new Foo()).bar() for everything even if it has zero interaction with object state
-
Show this thread
-
now, objects have the relation of code and data to drive their organization, which feels like *purpose*. compared to this, classes that only serve as containers for static methods feel empty and fake, bound only by human organizational concerns
1 reply 1 retweet 12 likesShow this thread -
this leads various of my esteemed colleagues to identify such classes as a vile antipattern, feeling instinctively that merely grouping things for their own convenience to be an impure and inelegant motivation unto them i say, verily, thine own self transcend
5 replies 1 retweet 17 likesShow this thread -
Replying to @smart_intellecc
it's nice of Python to give people a safe space where the bad static methods can't hurt them
9:52 AM - 16 Sep 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.