Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
amelius
· 10y ago · 0 comments
The only good thing that OOP brings to the table is, in my opinion, access control.
Comments
[–]
kevinavery
10y ago
Also referred to in this context as encapsulation. OOP provides a method of information hiding that allows implementation details to be changed later without changing the public API.
[–]
abiox
10y ago
one downside being that you risk creating obscured islands of mutable state, complecting engineering efforts.
[–]
kevinavery
10y ago
I view that more as a risk of using mutable state, not OOP. Regardless, I'd rather have the mutable state contained in as limited a scope as possible.