Re:Anthropomorphism Gone Wrong: OOP
by alkonaut on Saturday January 03, 2015 @12:41PM
(#8831355)
The encapsulation that guarantees invariants is the greatest benefit. This can be Done in another way by immutable structures and Functional programming. This way is in many ways better than OO but both are vastly superior to having publicly mutable structures modified by procedures.
Semantic organization where methods are defined near the data (the recepie is on the flour package) is a benefit for sure, but it's just a preference.
Semantic organization where methods are defined near the data (the recepie is on the flour package) is a benefit for sure, but it's just a preference.