Glossary


Open-Closed Principle
Suggested by Ivar Jacobsen, refined by Bertrand Meyer, and promoted by patterns, the Open-Closed Principle suggests that it is better to create designs that can accommodate change by adding to them, rather than by changing them. We say we are “Open to extension but closed to modification”; hence, “Open-Closed”. This is a principle, and it is impossible to follow it literally at all times, but it can guide us in refactoring as well See also: Refactoring to the Open-Closed