Introduction 介绍

Over the life time of an application, more time is spent adding to the existing codebase rather than constantly adding new features from scratch. As you are probably aware, this can be a tedious and frustrating process. Anytime you modify code, you risk introducing new bugs, or breaking old functionality completely. Ideally, we should be able to modify an existing codebase as quickly and easily as writing brand new code. If we correctly design our application according to the Open Closed principle, we can just do that!


Open Closed Principle 开放封闭原则

The Open Closed principle of SOLID design states that code is open for extension but closed for modification.


results matching ""

    No results matching ""