I'm writing a complex(isn) OO application and keep finding myself passing `self` as an argument to other objects. Code smell?
-
-
@steveklabnik what if I wave my hands and say it's http://en.wikipedia.org/wiki/Strategy_pattern … ? :) -
@j3@steveklabnik why do you need to pass self for strategies? For visitors yes, but strategies?
End of conversation
New conversation -
-
-
This Tweet is unavailable.
-
-
-
-
@steveklabnik@j3 It’s definitely a smell (something that warrants investigation). Whether it’s also a poor solution is a different matter.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.