Re:Anthropomorphism Gone Wrong: OOP
by Zibulon on Saturday January 03, 2015 @11:21AM
(#8831083)
The author is missing maybe the following point: when there will be multiple objects that need to move, and some of the move methods will require state, then it will be nice to encapsulate the state within objects, rather than having messy global state and methods that access a global state... which can lead to coupling between methods, if not concurrency issues, and before you know it, you end up with hard to understand, non-maintainable, non-refactorable spaghetti code.
[ Parent
| on HN ]
There are no comments on this comment yet.