Managing Change in Code.
The OCP (Open-Close Principle) states that we should keep our objects open for extensibility and closed for modification. We'll be looking at just the first part of this principle, keeping the code open for extensibility. It's a pretty simple rule but it is often ignored making code brittle and difficult to maintain. It's also _disibledevent=_blank>http://www.objectmentor.com/resources/articles/ocp.pdf
最新评论