2.4 Information Hiding
The principle of information hiding is a cornerstone of good software design, and I have already described it indirectly in a few places without mentioning it explicitly. According to this principle, data and functions within a component are hidden from the outside as far as possible, and only the important or relevant information is visible outside the component.
“Less is more, but not less than necessary.” —Wisdom of information hiding
The key principles of information hiding are encapsulation and abstraction. Both are intended to minimize the dependencies of the components in order to create a more flexible, robust, and maintainable software design.
The lower the dependencies between the components, the better the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access