3 ms·
DO teach encapsulation of state. I agree, with the caveat that there should be good discussion about when it's important to encapsulate state, rather than a ra
by Goladus 13y ago
DO teach encapsulation of state.
I agree, with the caveat that there should be good discussion about when it's important to encapsulate state, rather than a rather blanket "always encapsulate data and methods" which is how it's often presented.