"When you have a setter on an object, you've turned an object back into a data structure." - Alan Kay http://limist.com/coding/talk-notes-programming-and-scaling-alan-kay-2011.html …
@fowlduck it means that getters break encapsulation and the god of OO says you aren't doing OO anymore
-
-
@steveklabnik well, ok then. how is one supposed to setup object attributes then? on initialization?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik or is the argument that objects shouldn’t have attributes that are passed in? -
@fowlduck passed in via the constructor, or constructed internally from other data
End of conversation
New conversation -
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.