News for hackers. Stuff that matters.
Re:The Sororicide Antipattern by arjie on Thursday June 01, 2017 @02:52PM (#14463278)
What motivates the automatic-delegation-by-copying-attributes pattern presented here? It seems like an implementation of inheritance by someone who simply wanted to avoid the language's inheritance feature.
Re:The Sororicide Antipattern by tomku on Thursday June 01, 2017 @04:20PM (#14464153)
That's a pattern that I've seen a lot in Javascript, where it's usually called a "mixin" and used as pseudo-inheritance. I'm not sure why you would do it in Python.