News for hackers. Stuff that matters.
Re:Love this essay, I still can't (don't want to) find an ap... by kingkongrevenge on Saturday June 16, 2007 @08:23PM (#28604)
"It is more readable and understandable if an object only exposes the methods that it's user needs."

This sort of encapsulation is not specific to OO. You can hide data and methods within modules without using classes. In C++ terms you use anonymous namespaces. In C, perl, python(?) and other languages a leading underscore or "static" declaration conveys encapsulation, which is good enough as far as I'm concerned.

There are no comments on this comment yet.